summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Frank <justinpfrank@protonmail.com>2018-09-15 10:52:18 -0700
committerJustin Frank <justinpfrank@protonmail.com>2018-09-15 10:52:18 -0700
commit4bb87ef430800d9fa6ceed8575184ec6b99b14b2 (patch)
tree549cf0b5c40d937de51b0b6004ca1a0a4bee922e
parente32d5ec88e16a17205af5cc8b8f987a34c6a23ac (diff)
macros always end at the start of a line comment
-rw-r--r--rc/core/c-family.kak2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/core/c-family.kak b/rc/core/c-family.kak
index 3fe07b84..734e6643 100644
--- a/rc/core/c-family.kak
+++ b/rc/core/c-family.kak
@@ -145,7 +145,7 @@ 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 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