mirror of
https://github.com/cmur2/joe-syntax.git
synced 2024-12-22 02:54:23 +01:00
New bad tab highlighter for YAML files
This marks bad tabulators (inverse red) to make clear that YAML only relies on spaces for indentation.
This commit is contained in:
parent
0ca5a95d56
commit
268167c81e
16
yaml.jsf
16
yaml.jsf
@ -14,8 +14,16 @@
|
||||
=LocalType fg_310 # brown
|
||||
=BlockDelim bold blue
|
||||
|
||||
=BadTab inverse red
|
||||
|
||||
:line_start Idle
|
||||
* idle noeat
|
||||
"\t" bad_tab recolor=-1
|
||||
" " line_start
|
||||
|
||||
:idle Idle
|
||||
* idle
|
||||
"\n" line_start
|
||||
"%" directive recolor=-1
|
||||
"#" line_comment recolor=-1
|
||||
"'" string_sq_1 recolor=-1
|
||||
@ -26,16 +34,20 @@
|
||||
"*&" maybe_reference
|
||||
"!" maybe_typecast
|
||||
|
||||
# mark bad tabs until the first non-whitespace
|
||||
:bad_tab BadTab
|
||||
* line_start noeat
|
||||
|
||||
:line_comment Comment
|
||||
* line_comment
|
||||
"\n" idle
|
||||
"\n" line_start
|
||||
|
||||
:brace Brace
|
||||
* idle noeat
|
||||
|
||||
:directive Directive
|
||||
* directive
|
||||
"\n" idle
|
||||
"\n" line_start
|
||||
|
||||
:string_sq_1 Constant
|
||||
* string_sq noeat
|
||||
|
Loading…
Reference in New Issue
Block a user