diff options
-rw-r--r-- | pygments/lexers/agile.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/pygments/lexers/agile.py b/pygments/lexers/agile.py index 57d6a2ef..b4860e18 100644 --- a/pygments/lexers/agile.py +++ b/pygments/lexers/agile.py @@ -1099,13 +1099,16 @@ class IoLexer(RegexLexer): # DoubleQuotedString (r'"(\\\\|\\"|[^"])*"', String), # Operators - (r':=|=|\(|\)|;|,|\*|-|\+|>|<|@|!|/|\||\^|\.|%|&|\[|\]|\{|\}', Operator), + (r'::=|:=|=|\(|\)|;|,|\*|-|\+|>|<|@|!|/|\||\^|\.|%|&|\[|\]|\{|\}', + Operator), # keywords - (r'(clone|do|doFile|doString|method|for|if|else|elseif|then)', Keyword), + (r'(clone|do|doFile|doString|method|for|if|else|elseif|then)\b', + Keyword), # constants - (r'nil|false|true', Name.Constant), + (r'(nil|false|true)\b', Name.Constant), # names - ('Object|list|List|Map|args|Sequence|Coroutine|File', Name.Builtin), + ('(Object|list|List|Map|args|Sequence|Coroutine|File)\b', + Name.Builtin), ('[a-zA-Z_][a-zA-Z0-9_]*', Name), # numbers (r'(\d+\.?\d*|\d*\.\d+)([eE][+-]?[0-9]+)?', Number.Float), |