highlight floating point numbers with exponent
Correct highlihgting for `0.38e-18` like numbers
This commit is contained in:
parent
47be98f1fc
commit
e5558aee63
|
@ -164,7 +164,7 @@ evaluate-commands %sh{
|
||||||
}
|
}
|
||||||
|
|
||||||
# c specific
|
# c specific
|
||||||
add-highlighter shared/c/code/numbers regex %{\b-?(0x[0-9a-fA-F]+|\d+)([uU][lL]{0,2}|[lL]{1,2}[uU]?|[fFdDiI])?|'((\\.)?|[^'\\])'} 0:value
|
add-highlighter shared/c/code/numbers regex %{\b-?(0x[0-9a-fA-F]+|\d+)([uU][lL]{0,2}|[lL]{1,2}[uU]?|[fFdDiI]|([eE][-+]?\d+))?|'((\\.)?|[^'\\])'} 0:value
|
||||||
evaluate-commands %sh{
|
evaluate-commands %sh{
|
||||||
# Grammar
|
# Grammar
|
||||||
keywords='asm break case continue default do else for goto if return
|
keywords='asm break case continue default do else for goto if return
|
||||||
|
|
Loading…
Reference in New Issue
Block a user