Fix the grouping of the floating point regex
This commit is contained in:
parent
619b8b57af
commit
eeef78c5ea
@ -126,8 +126,8 @@ numeric : context {
|
||||
}
|
||||
: pattern {
|
||||
description = floating point number
|
||||
regex \= (\b\d+(.\d+|(.\d+)?[Ee][-+]?\d+))
|
||||
styles [] = .numeric, .numeric, .numeric;
|
||||
regex \= (\b\d+(?:.\d+|(?:.\d+)?[Ee][-+]?\d+))
|
||||
styles [] = .numeric;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user