dotfiles/nanorc/highlighting/lex.nanorc

12 lines
439 B
Plaintext

syntax "lex" "\.(l|lex|flex)$"
color red "%[^[[:space:]]]*"
## Strings
# NOTE: You will in general want your comments and strings to come last, because syntax highlighting rules will be applied in the order they are read in.
color brightyellow "<[^= ]*>" ""(\\.|[^"])*""
# NOTE: Very resource intensive.
color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
## Comments
color brightblue start="/\*" end="\*/"