Commits

Matthias Vallentin  committed cdd7a60

Update Bro lexer to include new language keywords.

The Bro language now features a "switch" and "hook" keyword. This commit adds
these to the list of keywords.

  • Participants
  • Parent commits 2479eb5

Comments (0)

Files changed (1)

File pygments/lexers/other.py

             (r'\\\n', Text),
             # Keywords
             (r'(add|alarm|break|case|const|continue|delete|do|else|enum|event'
-             r'|export|for|function|if|global|local|module|next'
-             r'|of|print|redef|return|schedule|type|when|while)\b', Keyword),
+             r'|export|for|function|if|global|hook|local|module|next'
+             r'|of|print|redef|return|schedule|switch|type|when|while)\b', Keyword),
             (r'(addr|any|bool|count|counter|double|file|int|interval|net'
              r'|pattern|port|record|set|string|subnet|table|time|timer'
              r'|vector)\b', Keyword.Type),