Skip to content

Commit 132f341

Browse files
committed
Colour string & character literal prefixes
1 parent 43faeef commit 132f341

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

C.sublime-syntax

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ contexts:
9797
# Float literals (hexadecimal) (DONE)
9898
- match: \b0(x|X)[0-9a-fA-F]*\.?[0-9a-fA-F]*(?<=[0-9a-fA-F\.])((e|E|p|P)[0-9a-fA-F]+)?(f|F|l|L)?\b
9999
scope: constant.numeric.float
100-
100+
101101
# String literals (DONE)
102102
# Uncomment the commented out sections below if you want colouring within the string
103103
- match: \"
@@ -131,6 +131,10 @@ contexts:
131131
pop: true
132132
- meta_scope: string.quoted.single
133133

134+
# String & character literal prefixes (DONE)
135+
- match: \b(L|u8|u|U)\b\s*(?=(\'|\"))
136+
scope: storage.type
137+
134138
# Control (DONE)
135139
- match: \b({{control}})\b
136140
scope: keyword.control

0 commit comments

Comments
 (0)