mirror of
https://github.com/ZuneDev/ZuneUIXTools.git
synced 2026-07-27 13:11:59 -07:00
Allow underscores, dashes, and digits in identifiers
This commit is contained in:
@@ -12,6 +12,8 @@ public static partial class Lexer
|
||||
|
||||
public static readonly Parser<string> WholeNumber = Parse.Digit.AtLeastOnce().Text();
|
||||
|
||||
public static readonly Parser<string> Identifier = Parse.LetterOrDigit.Or(Parse.Chars('_', '-')).AtLeastOnce().Text();
|
||||
|
||||
public static readonly Parser<string> Uri = Parse.LetterOrDigit.Or(Parse.Chars(":/!._-")).AtLeastOnce().Text();
|
||||
|
||||
public static readonly Parser<string> StatementEnd = Parse.Char(';').Return(";").Or(Parse.LineTerminator);
|
||||
|
||||
Reference in New Issue
Block a user