mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Strip tex and matlab leading inline comments
This commit is contained in:
@@ -36,6 +36,7 @@ class TestTokenizer < Test::Unit::TestCase
|
||||
assert_equal %w(foo /* */), tokenize("foo /* \nComment\n */")
|
||||
assert_equal %w(foo <!-- -->), tokenize("foo <!-- Comment -->")
|
||||
assert_equal %w(foo {- -}), tokenize("foo {- Comment -}")
|
||||
assert_equal %w(% %), tokenize("2 % 10\n% Comment")
|
||||
end
|
||||
|
||||
def test_sgml_tags
|
||||
@@ -53,6 +54,7 @@ class TestTokenizer < Test::Unit::TestCase
|
||||
assert_equal %w(-), tokenize("1 - 1")
|
||||
assert_equal %w(*), tokenize("1 * 1")
|
||||
assert_equal %w(/), tokenize("1 / 1")
|
||||
assert_equal %w(%), tokenize("2 % 5")
|
||||
assert_equal %w(&), tokenize("1 & 1")
|
||||
assert_equal %w(&&), tokenize("1 && 1")
|
||||
assert_equal %w(|), tokenize("1 | 1")
|
||||
|
||||
Reference in New Issue
Block a user