Skip to content

Commit 2e56497

Browse files
authored
[Utils][vim] Match more hexadecimal float constants (#99000)
The `0x[KLMHR]` syntax denotes different floating-point types: various long doubles, half and bfloat. See https://llvm.org/docs/LangRef.html#simple-constants for reference.
1 parent 7c597c0 commit 2e56497

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
@@ -219,7 +219,7 @@ syn keyword llvmError getresult begin end
219219
syn match llvmNoName /[%@!]\d\+\>/
220220
syn match llvmNumber /-\?\<\d\+\>/
221221
syn match llvmFloat /-\?\<\d\+\.\d*\(e[+-]\d\+\)\?\>/
222-
syn match llvmFloat /\<0x\x\+\>/
222+
syn match llvmFloat /\<0x[KLMHR]\?\x\+\>/
223223
syn keyword llvmBoolean true false
224224
syn keyword llvmConstant zeroinitializer undef null none poison vscale
225225
syn match llvmComment /;.*$/

0 commit comments

Comments
 (0)