Rename "!=" to "<>"; "!" now only shows impurity

This commit is contained in:
Nigel Tao committed 2019-03-02 14:51:32 +11:00
1 parent f8d02cfb16
commit ef7aa0d980
11 files changed
+82 -83

No files matched your search

+3 -5
View File
@@ -659,7 +659,7 @@ var builtInsByID = [nBuiltInIDs]string{
IDTildeSatPlus: "~sat+",
IDTildeSatMinus: "~sat-",
IDNotEq: "!=",
IDNotEq: "<>",
IDLessThan: "<",
IDLessEq: "<=",
IDEqEq: "==",
@@ -954,6 +954,7 @@ var squiggles = [256]ID{
'}': IDCloseCurly,
',': IDComma,
'!': IDExclam,
'?': IDQuestion,
':': IDColon,
';': IDSemicolon,
@@ -975,10 +976,6 @@ var lexers = [256][]suffixLexer{
{".", IDDotDot},
{"", IDDot},
},
'!': {
{"=", IDNotEq},
{"", IDExclam},
},
'&': {
{"=", IDAmpEq},
{"", IDAmp},
@@ -1020,6 +1017,7 @@ var lexers = [256][]suffixLexer{
{"<=", IDShiftLEq},
{"<", IDShiftL},
{"=", IDLessEq},
{">", IDNotEq},
{"", IDLessThan},
},
'>': {