Skip to content

Commit 61fd458

Browse files
tclin914akadutta
authored andcommitted
[Utils][vim] Match hexadecimal constants with u or s prefixes (llvm#162613)
We can add 's' or 'u' before the hexadecimal constants to denote its signedness. See https://llvm.org/docs/LangRef.html#simple-constants for reference.
1 parent aab825a commit 61fd458

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/vim/syntax/llvm.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ syn keyword llvmError getresult begin end
220220
syn match llvmNoName /[%@!]\d\+\>/
221221
syn match llvmNumber /-\?\<\d\+\>/
222222
syn match llvmFloat /-\?\<\d\+\.\d*\(e[+-]\d\+\)\?\>/
223-
syn match llvmFloat /\<0x[KLMHR]\?\x\+\>/
223+
syn match llvmFloat /\<\(u\|s\)\?0x[KLMHR]\?\x\+\>/
224224
syn keyword llvmBoolean true false
225225
syn keyword llvmConstant zeroinitializer undef null none poison vscale
226226
syn match llvmComment /;.*$/

0 commit comments

Comments
 (0)