summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/camp.l
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-05-12 22:54:35 +0000
committerKarl Berry <karl@freefriends.org>2016-05-12 22:54:35 +0000
commitf0e23ed3daf4d57345cfa284164276b520302c03 (patch)
tree3e5b0729899d1e124eec7996df94fd9f7e688d05 /Build/source/utils/asymptote/camp.l
parentbd459bc63bbacb77224c9d858759541096c095c8 (diff)
asy 2.38 sources
git-svn-id: svn://tug.org/texlive/trunk@41074 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/camp.l')
-rw-r--r--Build/source/utils/asymptote/camp.l4
1 files changed, 3 insertions, 1 deletions
diff --git a/Build/source/utils/asymptote/camp.l b/Build/source/utils/asymptote/camp.l
index 1aed3fdae5c..72681d30ae5 100644
--- a/Build/source/utils/asymptote/camp.l
+++ b/Build/source/utils/asymptote/camp.l
@@ -312,6 +312,7 @@ EXTRAOPS <<|>>|$|$$|@|@@|~
"-" {DEFSYMBOL(SYM_MINUS); return '-'; }
"*" {DEFSYMBOL(SYM_TIMES); return '*'; }
"/" {DEFSYMBOL(SYM_DIVIDE); return '/'; }
+"#" {DEFSYMBOL(SYM_QUOTIENT); return '#'; }
"%" {DEFSYMBOL(SYM_MOD); return '%'; }
"^" {DEFSYMBOL(SYM_CARET); return '^'; }
"**" {savesymbol(SYM_CARET); return '^'; }
@@ -340,6 +341,7 @@ EXTRAOPS <<|>>|$|$$|@|@@|~
"-=" {savesymbol(SYM_MINUS); return SELFOP; }
"*=" {savesymbol(SYM_TIMES); return SELFOP; }
"/=" {savesymbol(SYM_DIVIDE); return SELFOP; }
+"#=" {savesymbol(SYM_QUOTIENT); return SELFOP; }
"%=" {savesymbol(SYM_MOD); return SELFOP; }
"^=" {savesymbol(SYM_CARET); return SELFOP; }
@@ -413,7 +415,7 @@ operator {adjust(); BEGIN opname; }
BEGIN INITIAL;
return ID;
}
-[-+*/%^!<>]|==|!=|<=|>=|&|\||\^\^|\.\.|::|--|---|\+\+|{EXTRAOPS} {
+[-+*/#%^!<>]|==|!=|<=|>=|&|\||\^\^|\.\.|::|--|---|\+\+|{EXTRAOPS} {
makeopsymbol();
BEGIN INITIAL;
return ID;}