mirror of https://github.com/MidnightCommander/mc
Ruby syntax update
* fixed include? keyword * fixed $ in the end of regexps Valid highlighting of regexps can't be done with syntaxcolor. Ruby uses '/' to divide numbers and for defining regexps. Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
This commit is contained in:
parent
9cd7a04b54
commit
d9ac6384b5
|
@ -36,10 +36,8 @@ context default
|
|||
|
||||
#System variables
|
||||
|
||||
#Please note that in regular expressions the final $/ is not correctly
|
||||
#highlighted as a system variable. This is not right but I actually do
|
||||
#not know any way to avoid it. Any idea is welcome.
|
||||
|
||||
# hack for regexps
|
||||
keyword $/ yellow
|
||||
keyword $\{!@&\+`'=~/\\,.;<>_\*"$:F?\} red
|
||||
keyword $\{\0123456789\} red
|
||||
keyword $-+ red
|
||||
|
@ -140,7 +138,8 @@ context default
|
|||
keyword whole superclass yellow
|
||||
|
||||
#Class module
|
||||
|
||||
# exclusion
|
||||
keyword whole include\? green
|
||||
keyword whole include magenta
|
||||
keyword whole require magenta
|
||||
# keyword whole where magenta
|
||||
|
@ -214,9 +213,11 @@ context default
|
|||
|
||||
context # \n brown
|
||||
spellcheck
|
||||
|
||||
context " " green
|
||||
keyword \\" brightgreen
|
||||
keyword \\\\ brightgreen
|
||||
|
||||
context ' ' brightgreen
|
||||
keyword \\' green
|
||||
keyword \\\\ green
|
||||
|
|
Loading…
Reference in New Issue