diff options
| author | Simon Tatham <anakin@pobox.com> | 2001-12-14 12:22:39 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2001-12-14 12:22:39 +0000 |
| commit | e06e29ae22c80de7f1b12fa5b81350a21a3ad3b3 (patch) | |
| tree | 9a08e709f36437970942acfbab71ddc2c4ff3a9e /misc | |
| parent | 7f3f3915a5cacc71d0cc1a63181a3d8be47a4769 (diff) | |
| download | halibut-e06e29ae22c80de7f1b12fa5b81350a21a3ad3b3.zip halibut-e06e29ae22c80de7f1b12fa5b81350a21a3ad3b3.tar.gz halibut-e06e29ae22c80de7f1b12fa5b81350a21a3ad3b3.tar.bz2 halibut-e06e29ae22c80de7f1b12fa5b81350a21a3ad3b3.tar.xz | |
Update the Buttress Jed mode for the renamed DFA functions.
[originally from svn r1488]
Diffstat (limited to 'misc')
| -rw-r--r-- | misc/buttress.sl | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/misc/buttress.sl b/misc/buttress.sl index 60c1c5b..b7b30bd 100644 --- a/misc/buttress.sl +++ b/misc/buttress.sl @@ -16,6 +16,22 @@ set_syntax_flags ($1, 8); % any correctly nested sequence of braces. Of course we can't match % that in a DFA rule, so we'll go down to a reasonable depth of 3 % instead. +#ifexists dfa_define_highlight_rule +dfa_define_highlight_rule ("\\\\#{[^{}]*({[^{}]*({[^}]*}[^{}]*)*}[^{}]*)*}", + "Qcomment", $1); + +dfa_define_highlight_rule ("\\\\#.*$", "comment", $1); +dfa_define_highlight_rule ("^\\\\c([ \t].*)?$", "string", $1); +dfa_define_highlight_rule ("\\\\[\\\\{}\\-_]", "keyword0", $1); +dfa_define_highlight_rule ("\\\\[A-Za-tv-z][A-Za-z0-9]*", "keyword0", $1); +dfa_define_highlight_rule ("\\\\u[A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9]", + "keyword0", $1); +dfa_define_highlight_rule ("\\\\u[A-Fa-f0-9]?[A-Fa-f0-9]?[A-Fa-f0-9]?[A-Fa-f0-9]", + "keyword1", $1); +dfa_define_highlight_rule ("[{}]", "delimiter", $1); +dfa_define_highlight_rule (".", "normal", $1); +dfa_build_highlight_table ($1); +#else define_highlight_rule ("\\\\#{[^{}]*({[^{}]*({[^}]*}[^{}]*)*}[^{}]*)*}", "Qcomment", $1); @@ -31,6 +47,7 @@ define_highlight_rule ("[{}]", "delimiter", $1); define_highlight_rule (".", "normal", $1); build_highlight_table ($1); #endif +#endif % This hook identifies lines containing comments as paragraph separator define buttress_is_comment() { |