mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
mcedit: fixed syntax highlighting bug in .c and .cxx syntax scripts
To reproduce, open this .c file in mcedit (remove backslashes): /* this preprocessor macro is not colorized, when there is whitespace before '#' and the next line is not empty */ \ #if not_colorized int code; /* this preprocessor macro is colorized properly, the next line is empty */ \ #if colorized int code2; Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
49493dc8e0
commit
deceefab74
@ -36,7 +36,7 @@ context default
|
|||||||
keyword whole inline yellow
|
keyword whole inline yellow
|
||||||
keyword whole wchar_t yellow
|
keyword whole wchar_t yellow
|
||||||
keyword whole ... yellow
|
keyword whole ... yellow
|
||||||
keyword whole linestart \{\s\t\}\[\s\t\]#*\n brightmagenta
|
keyword linestart \{\s\t\}\[\s\t\]#*\n brightmagenta
|
||||||
keyword whole \[\s\t\]default yellow
|
keyword whole \[\s\t\]default yellow
|
||||||
keyword whole linestart \[\s\t\]\{ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz\}\[0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz\]: cyan
|
keyword whole linestart \[\s\t\]\{ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz\}\[0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz\]: cyan
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ context default
|
|||||||
keyword whole using yellow
|
keyword whole using yellow
|
||||||
keyword whole wchar_t yellow
|
keyword whole wchar_t yellow
|
||||||
keyword whole ... yellow
|
keyword whole ... yellow
|
||||||
keyword whole linestart \{\s\t\}\[\s\t\]#*\n brightmagenta
|
keyword linestart \{\s\t\}\[\s\t\]#*\n brightmagenta
|
||||||
|
|
||||||
keyword /\* brown
|
keyword /\* brown
|
||||||
keyword \*/ brown
|
keyword \*/ brown
|
||||||
|
Loading…
Reference in New Issue
Block a user