Skip to content

Commit ce6ed93

Browse files
TinCan2davidhcefx
authored andcommitted
enh(c): Added higlighting for pragma, true, and false
Originally proposed in scopatz#431
1 parent bb6ff18 commit ce6ed93

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

c.nanorc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ color green "\<((const|dynamic|reinterpret|static)_cast)\>"
1313
color green "\<(alignas|alignof|asm|auto|compl|concept|constexpr|decltype|export|noexcept|nullptr|requires|static_assert|thread_local|typeid|override|final)\>"
1414
color green "\<(and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\>"
1515
color brightmagenta "\<(goto|continue|break|return)\>"
16-
color brightcyan "^[[:space:]]*#[[:space:]]*(define|include|(un|ifn?)def|endif|el(if|se)|if|warning|error)"
16+
color brightcyan "^[[:space:]]*#[[:space:]]*(pragma|define|include|(un|ifn?)def|endif|el(if|se)|if|warning|error)"
1717
color brightmagenta "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\\x[0-9A-Fa-f]{1,2}'"
18+
color orange "\<(true|false)\>"
1819

1920
##
2021
## GCC builtins

0 commit comments

Comments
 (0)