mirror of
https://codeberg.org/ProgramSnail/lang.git
synced 2025-12-05 22:48:43 +00:00
change in literals, literal types
This commit is contained in:
parent
17ff590048
commit
43dfa75b74
10 changed files with 168 additions and 39 deletions
|
|
@ -59,8 +59,10 @@
|
|||
|
||||
<RegExpr String="(\@|\:|(\?\?)|(\!\!)|(\=\>)|(\!\!\=\>))(?![a\+\\\-\*/%\^\!\?\|&,<>=\.])" attribute="Control Flow" context="#stay"/>
|
||||
|
||||
<RegExpr String="\b[0-9]+\.[0-9]+\b" attribute="Float" context="#stay"/>
|
||||
<RegExpr String="''([^\\\/]|(\\.))''" attribute="Character" context="#stay"/>
|
||||
<RegExpr String="\b[0-9]+\.[0-9]+f?\b" attribute="Float" context="#stay"/>
|
||||
<RegExpr String="''([^\\\/]|(\\.))''u?" attribute="Character" context="#stay"/>
|
||||
<RegExpr String="\b[0-9]+[il]?\b" attribute="Decimal" context="#stay"/>
|
||||
<RegExpr String=""([^\\"]|(\\.))*"u?" attribute="String" context="#stay" />
|
||||
|
||||
<RegExpr String="((?<![\+\\\-\*/%\^\!\?\|&,<>=\.])((\.+)|([\+\\\-\*/%\^\!\?\|&,<>=]+\.?\.?\.?)))|(\|)" attribute="Operator" context="#stay"/>
|
||||
|
||||
|
|
@ -72,9 +74,6 @@
|
|||
|
||||
<RegExpr String="([a-z_][a-z0-9_]*\.)*#[A-Z][a-zA-Z0-9]*(?![a-zA-Z0-9])" attribute="Typeclass" context="#stay"/>
|
||||
|
||||
<RegExpr String="\b[0-9]+\b" attribute="Decimal" context="#stay"/>
|
||||
<RegExpr String=""([^\\"]|(\\.))*"" attribute="String" context="#stay" />
|
||||
|
||||
<DetectChar char="(" attribute="Symbol" context="#stay" beginRegion="OpenBracket"/>
|
||||
<DetectChar char=")" attribute="Symbol" context="#stay" endRegion="OpenBracket"/>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue