Commits

Olov Lassus  committed 1cd5ce6

DartLexer: fix keyword-matching

  • Participants
  • Parent commits 25e2d0e

Comments (0)

Files changed (1)

File pygments/lexers/web.py

              Keyword),
             (r'(abstract|const|extends|factory|final|get|implements|'
              r'native|operator|set|static|typedef|var)\b', Keyword.Declaration),
-            (r'(bool|double|Dynamic|int|num|Object|String|void)', Keyword.Type),
-            (r'(false|null|true)', Keyword.Constant),
+            (r'(bool|double|Dynamic|int|num|Object|String|void)\b', Keyword.Type),
+            (r'(false|null|true)\b', Keyword.Constant),
             (r'@"(\\\\|\\"|[^"])*"', String.Double), # raw string
             (r"@'(\\\\|\\'|[^'])*'", String.Single), # raw string
             (r'"', String.Double, 'string_double'),