Add brackets to tokens

This commit is contained in:
Joshua Peek
2012-07-24 11:28:27 -05:00
parent 52833b58d5
commit 53300ca581
2 changed files with 6 additions and 2 deletions

View File

@@ -76,7 +76,7 @@ module Linguist
extract_sgml_tokens(token).each { |t| tokens << t }
# Common programming punctuation
elsif token = s.scan(/;|\{|\}|\(|\)/)
elsif token = s.scan(/;|\{|\}|\(|\)|\[|\]/)
tokens << token
# Regular token