inweb-bootstrap/Languages/Inweb.ildf

37 lines
735 B
Text
Raw Normal View History

2020-04-07 22:04:32 +00:00
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
2020-04-21 16:55:17 +00:00
brackets in /\s*([A-Z][^"]*):(.*)/ {
2020-04-07 22:04:32 +00:00
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
}
2020-04-21 16:55:17 +00:00
brackets in /\s*(\[[A-Za-z0-9:]+\])(.*)/ {
2020-04-07 22:04:32 +00:00
number 1 => !identifier
}
matches of /\[\[.*?\]\]/ {
=> !function
}
}