Skip to content

Commit

Permalink
Make $ a valid operator character
Browse files Browse the repository at this point in the history
The dollar sign was intended to be an operator, but had been omitted
from the list of valid characters. This commit permits '$' to appear as
part of any operator name.
  • Loading branch information
mwh committed Oct 5, 2014
1 parent b8f6c07 commit 0b071b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lexer.grace
Expand Up @@ -590,7 +590,7 @@ def LexerClass = object {
def operatorChar = unicode.pattern("Sm", "So",
"-".ord, "&".ord, "|".ord, ":".ord,
"%".ord, "^".ord, "@".ord, "?".ord,
"*".ord, "/".ord, "+".ord, "!".ord
"*".ord, "/".ord, "+".ord, "!".ord, "$".ord
)
def iGTLT = unicode.pattern("i".ord, "<".ord, ">".ord)
def notcp = unicode.pattern()not("c".ord, "p".ord)
Expand Down

0 comments on commit 0b071b9

Please sign in to comment.