diff --git a/autotests/folding/highlight.cpp.fold b/autotests/folding/highlight.cpp.fold --- a/autotests/folding/highlight.cpp.fold +++ b/autotests/folding/highlight.cpp.fold @@ -505,3 +505,11 @@ __GCC_ATOMIC_CHAR16_T_LOCK_FREE __GNUC__ __linux__ + +// Digraphs (see bug #411508) +%:include +int main() +<% + [](){%>(); +} +<:<:fallthrough]] diff --git a/autotests/folding/test.c.fold b/autotests/folding/test.c.fold --- a/autotests/folding/test.c.fold +++ b/autotests/folding/test.c.fold @@ -67,3 +67,12 @@ int i = 0; // this should not be highlighted as a string + +/* + * Digraphs (see bug #411508) + */ +%:include +int a() +<% + [](){%>(); +} diff --git a/autotests/html/highlight.cpp.html b/autotests/html/highlight.cpp.html --- a/autotests/html/highlight.cpp.html +++ b/autotests/html/highlight.cpp.html @@ -511,4 +511,12 @@ __GCC_ATOMIC_CHAR16_T_LOCK_FREE __GNUC__ __linux__ + +// Digraphs (see bug #411508) +%:include <stdio.h> +int main() +<% + [](){%>(); +} +<:<:fallthrough]] diff --git a/autotests/html/test.c.html b/autotests/html/test.c.html --- a/autotests/html/test.c.html +++ b/autotests/html/test.c.html @@ -73,4 +73,13 @@ int i = 0; // this should not be highlighted as a string + +/* + * Digraphs (see bug #411508) + */ +%:include <stdio.h> +int a() +<% + [](){%>(); +} diff --git a/autotests/input/highlight.cpp b/autotests/input/highlight.cpp --- a/autotests/input/highlight.cpp +++ b/autotests/input/highlight.cpp @@ -505,3 +505,11 @@ __GCC_ATOMIC_CHAR16_T_LOCK_FREE __GNUC__ __linux__ + +// Digraphs (see bug #411508) +%:include +int main() +<% + [](){%>(); +} +<:<:fallthrough]] diff --git a/autotests/input/test.c b/autotests/input/test.c --- a/autotests/input/test.c +++ b/autotests/input/test.c @@ -67,3 +67,12 @@ int i = 0; // this should not be highlighted as a string + +/* + * Digraphs (see bug #411508) + */ +%:include +int a() +<% + [](){%>(); +} diff --git a/autotests/reference/highlight.cpp.ref b/autotests/reference/highlight.cpp.ref --- a/autotests/reference/highlight.cpp.ref +++ b/autotests/reference/highlight.cpp.ref @@ -505,3 +505,11 @@ __GCC_ATOMIC_CHAR16_T_LOCK_FREE
__GNUC__
__linux__
+
+// Digraphs (see bug #411508)
+%:include
+int main()
+<%
+ [](){%>();
+}
+<:<:fallthrough]]
diff --git a/autotests/reference/test.c.ref b/autotests/reference/test.c.ref --- a/autotests/reference/test.c.ref +++ b/autotests/reference/test.c.ref @@ -67,3 +67,12 @@

int i = 0; // this should not be highlighted as a string
+
+/*
+ * Digraphs (see bug #411508)
+ */
+%:include
+int a()
+<%
+ [](){%>();
+}
diff --git a/data/syntax/c.xml b/data/syntax/c.xml --- a/data/syntax/c.xml +++ b/data/syntax/c.xml @@ -5,9 +5,12 @@ + + + ]> - - + + + + @@ -158,19 +163,19 @@ - + - - - + + + - - + + - - + + @@ -203,9 +208,9 @@ - - - + + + @@ -216,8 +221,8 @@ - - + + diff --git a/data/syntax/isocpp.xml b/data/syntax/isocpp.xml --- a/data/syntax/isocpp.xml +++ b/data/syntax/isocpp.xml @@ -22,7 +22,7 @@ + + + - - - @@ -320,6 +320,9 @@ + + + @@ -519,6 +522,7 @@ + @@ -696,6 +700,7 @@ +