fix comment syntax

--HG--
branch : pmacs2
This commit is contained in:
~d6 2021-12-21 01:30:22 -05:00
parent 4ce3e253c9
commit 480754b38e
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ import re
class TalGrammar(Grammar):
rules = [
PatternRule('spaces', '[ \t]+'),
RegionRule('comment', r'\(', Grammar, '\)'),
RegionRule('comment', r'\((?:[ \t]|$)', Grammar, '(?:^|[ \t])\)'),
PatternRule('delimiter', r'[\[\]{}]'),
PatternRule('tal.inst', r'(BRK|LIT|INC|POP|DUP|NIP|SWP|OVR|ROT|EQU|NEQ|GTH|LTH|JMP|JCN|JSR|STH|LDZ|STZ|LDR|STR|LDA|STA|DEI|DEO|ADD|SUB|MUL|DIV|AND|ORA|EOR|SFT)2?k?r?'), # instructions
PatternRule('tal.defmacro', r'%[^ \t\n]+'), # macro-define