mirror of
https://github.com/mawww/kakoune.git
synced 2024-08-17 08:40:37 +03:00
Merge remote-tracking branch 'arachsys/c-family-pp'
This commit is contained in:
commit
250ead2b7a
@ -213,10 +213,10 @@ evaluate-commands %sh{
|
||||
add-highlighter shared/$ft/comment region /\\* \\*/ fill comment
|
||||
add-highlighter shared/$ft/line_comment region // (?<!\\\\)(?=\\n) fill comment
|
||||
add-highlighter shared/$ft/disabled region -recurse "#\\h*if(?:def)?" ^\\h*?#\\h*if\\h+(?:0|FALSE)\\b "#\\h*(?:else|elif|endif)" fill comment
|
||||
add-highlighter shared/$ft/macro region %{^\\h*?\\K#} %{(?<!\\\\)(?=\\n)|(?=//)} group
|
||||
|
||||
add-highlighter shared/$ft/macro/ fill meta
|
||||
add-highlighter shared/$ft/macro/ regex ^\\h*#\\h*include\\h+(\\S*) 1:module
|
||||
add-highlighter shared/$ft/ifdef region %{^\\h*\\K#\\h*(?:define|elif|if)(?=\\h)} %{(?<!\\\\)(?=\\s)|(?=//)} fill meta
|
||||
add-highlighter shared/$ft/macro region %{^\\h*#} %{(?<!\\\\)(?=\\n)|(?=//)} group
|
||||
add-highlighter shared/$ft/macro/ regex ^\\h*(#\\h*\\S*) 1:meta
|
||||
add-highlighter shared/$ft/macro/ regex ^\\h*#\\h*include\\h+(<[^>]*>|"(?:[^"\\\\]|\\\\.)*") 1:module
|
||||
add-highlighter shared/$ft/macro/ regex /\\*.*?\\*/ 0:comment
|
||||
EOF
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user