37 lines
729 B
Text
37 lines
729 B
Text
|
Name: "Inweb"
|
||
|
Details: "The markup language for the Inweb literate programming system"
|
||
|
Extension: ".w"
|
||
|
|
||
|
colouring {
|
||
|
=> !plain
|
||
|
# Detect Property: Value lines, not being fooled by a colon inside quotes
|
||
|
brackets in /([A-Z][^"]*):(.*)/ {
|
||
|
number 1 => !element
|
||
|
number 2 => !string
|
||
|
}
|
||
|
brackets in /\s*(@\S*)(.*)/ {
|
||
|
number 1 => !function
|
||
|
number 2 => !plain
|
||
|
}
|
||
|
brackets in /\s*(@\s*=)(.*)/ {
|
||
|
number 1 => !function
|
||
|
number 2 => !plain
|
||
|
}
|
||
|
matching /=.*/ => {
|
||
|
=> !function
|
||
|
}
|
||
|
brackets in /\s*(@<.*?@>\s*=)(.*)/ {
|
||
|
number 1 => !function
|
||
|
number 2 => !plain
|
||
|
}
|
||
|
matches of /@<.*?@>/ {
|
||
|
=> !function
|
||
|
}
|
||
|
brackets in /(\[[A-Za-z0-9:]+\])(.*)/ {
|
||
|
number 1 => !identifier
|
||
|
}
|
||
|
matches of /\[\[.*?\]\]/ {
|
||
|
=> !function
|
||
|
}
|
||
|
}
|