mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-28 09:07:19 +03:00
Merge remote-tracking branch 'laelath/highlighter-fixes'
This commit is contained in:
commit
8618b286c5
@ -143,12 +143,13 @@ evaluate-commands %sh{
|
||||
add-highlighter shared/FT/string region %{MAYBEAT(?<!QUOTE)(?<!QUOTE\\)"} %{(?<!\\)(?:\\\\)*"} fill string
|
||||
add-highlighter shared/FT/raw_string region %{R"([^(]*)\(} %{\)([^")]*)"} fill string
|
||||
add-highlighter shared/FT/comment region /\* \*/ fill comment
|
||||
add-highlighter shared/FT/line_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 rgb:666666
|
||||
add-highlighter shared/FT/macro region %{^\h*?\K#} %{(?<!\\)\n} group
|
||||
add-highlighter shared/FT/macro region %{^\h*?\K#} %{(?<!\\)(?=\n)|(?=//)} group
|
||||
|
||||
add-highlighter shared/FT/macro/ fill meta
|
||||
add-highlighter shared/FT/macro/ regex ^\h*#include\h+(\S*) 1:module
|
||||
add-highlighter shared/FT/macro/ regex /\*.*?\*/ 0:comment
|
||||
' | sed -e "s/FT/${ft}/g; s/QUOTE/'/g; s/MAYBEAT/${maybe_at}/;"
|
||||
done
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user