[gtksourceview: 1/3] c.lang: highlight C11 Unicode literals
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview: 1/3] c.lang: highlight C11 Unicode literals
- Date: Wed, 27 Apr 2022 18:08:05 +0000 (UTC)
commit 94592d7b862bd29e89e6ada8b3f0bc3b15f9a0e8
Author: Elias Aebi <353-eyelash users noreply gitlab gnome org>
Date: Wed Apr 27 09:16:17 2022 +0200
c.lang: highlight C11 Unicode literals
data/language-specs/c.lang | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/data/language-specs/c.lang b/data/language-specs/c.lang
index 48c7f9c4..0f3f31f3 100644
--- a/data/language-specs/c.lang
+++ b/data/language-specs/c.lang
@@ -125,7 +125,7 @@
</context>
<context id="string" style-ref="string" end-at-line-end="true" class="string"
class-disabled="no-spell-check">
- <start>L?"</start>
+ <start>(L|u8|u|U)?"</start>
<end>"</end>
<include>
<context ref="printf"/>
@@ -137,7 +137,7 @@
</context>
<context id="char" style-ref="char" class="string">
- <match>L?'(\%{escaped-character}|.)'</match>
+ <match>(L|u8|u|U)?'(\%{escaped-character}|.)'</match>
</context>
<!-- http://www.lysator.liu.se/c/ANSI-C-grammar-l.html -->
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]