Gets or sets whether to enable built-in logic to recognize numeric
literals or not.
Namespace: Sgry.Azuki.HighlighterAssembly: Azuki (in Azuki.dll) Version: 1.7.13.40248
Syntax
C# |
---|
public bool HighlightsNumericLiterals { get; set; } |
Visual Basic |
---|
Public Property HighlightsNumericLiterals As Boolean Get Set |
Property Value
Type: Boolean
Remarks
By default, KeywordHighlighter recognizes numeric literals (such as 3.14, 0xfffe) automatically and highlights them. This built-in logic highlights:
tokens starting with '0x' and every following character are one of '0123456789abcdefABCDEF', and tokens starting with digits or dot (period) and ends with one of 'fijlFIJL'.This feature is a kind of legacy implemented back when this class cannot highlight patterns specified with regular expressions. Because there is no customization option, if you want to highlight numeric literals which cannot be highlighted by this logic, disable this feature and define regular expressions for numeric literals by your own.