mirror of
https://github.com/cmur2/joe-syntax.git
synced 2024-12-21 16:54:23 +01:00
Haml: not every = is the start of ruby code
If a line already contains plain characters (even whitespace, say everything whitout a special function like tags etc) then an equal sign will only be an equals sign not the start of ruby code.
This commit is contained in:
parent
b811498057
commit
bae250abd9
18
haml.jsf
18
haml.jsf
@ -26,13 +26,19 @@
|
|||||||
":" filter recolor=-1
|
":" filter recolor=-1
|
||||||
|
|
||||||
:escape_first Constant
|
:escape_first Constant
|
||||||
* idle
|
* idle_no_ruby
|
||||||
|
|
||||||
:idle Constant
|
:idle Constant
|
||||||
* idle
|
* idle_no_ruby
|
||||||
"\n" line_start
|
"\n" line_start
|
||||||
|
"#" maybe_subst
|
||||||
|
"\\" maybe_subst_escape
|
||||||
"=~-" ruby_call noeat
|
"=~-" ruby_call noeat
|
||||||
"&!" maybe_esc_ruby_call
|
"&!" maybe_esc_ruby_call
|
||||||
|
|
||||||
|
:idle_no_ruby Constant
|
||||||
|
* idle_no_ruby
|
||||||
|
"\n" line_start
|
||||||
"#" maybe_subst
|
"#" maybe_subst
|
||||||
"\\" maybe_subst_escape
|
"\\" maybe_subst_escape
|
||||||
|
|
||||||
@ -89,7 +95,7 @@
|
|||||||
* line_start call=ruby.ruby(haml)
|
* line_start call=ruby.ruby(haml)
|
||||||
|
|
||||||
:maybe_esc_ruby_call Constant
|
:maybe_esc_ruby_call Constant
|
||||||
* idle
|
* idle_no_ruby
|
||||||
"=" esc_ruby_call recolor=-2
|
"=" esc_ruby_call recolor=-2
|
||||||
|
|
||||||
:esc_ruby_call Idle
|
:esc_ruby_call Idle
|
||||||
@ -100,15 +106,15 @@
|
|||||||
* line_start call=ruby.ruby(haml)
|
* line_start call=ruby.ruby(haml)
|
||||||
|
|
||||||
:maybe_subst Constant
|
:maybe_subst Constant
|
||||||
* idle
|
* idle_no_ruby
|
||||||
"{" subst recolor=-2
|
"{" subst recolor=-2
|
||||||
|
|
||||||
:subst Escape
|
:subst Escape
|
||||||
* subst
|
* subst
|
||||||
"}" idle
|
"}" idle_no_ruby
|
||||||
|
|
||||||
:maybe_subst_escape Constant
|
:maybe_subst_escape Constant
|
||||||
* idle
|
* idle_no_ruby
|
||||||
|
|
||||||
:filter Filter
|
:filter Filter
|
||||||
* idle
|
* idle
|
||||||
|
Loading…
Reference in New Issue
Block a user