feat: match left side of identifier (#1585)

This commit is contained in:
Richard Gomez authored and GitHub committed 2024-10-20 09:38:18 -05:00
1 parent 851c11ab1a
commit d03d6c401b
2 files changed
+99 -99

No files matched your search

+3 -3
View File
@@ -15,10 +15,10 @@ const (
caseInsensitive = `(?i)`
// identifier prefix (just an ignore group)
identifierCaseInsensitivePrefix = `(?i:`
identifierCaseInsensitivePrefix = `[\w.-]{0,10}?(?i:`
identifierCaseInsensitiveSuffix = `)`
identifierPrefix = `(?:`
identifierSuffix = `)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}`
identifierPrefix = `[\w.-]{0,10}?(?:`
identifierSuffix = `)(?:[ \t\w.-]{0,20})(?:[\s|']|[\s|"]){0,3}`
// commonly used assignment operators or function call
operator = `(?:=|>|:{1,3}=|\|\|:|<=|=>|:|\?=)`