aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test_lexlua.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_lexlua.lua')
-rw-r--r--test/test_lexlua.lua8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/test_lexlua.lua b/test/test_lexlua.lua
index 3c4cdea40..f7bfd94c0 100644
--- a/test/test_lexlua.lua
+++ b/test/test_lexlua.lua
@@ -870,12 +870,10 @@ function test_html()
assert_lex(html, code, tokens)
-- Folding tests.
- local symbols = {'<', '/>', '<!--', '-->', '{', '}', '/*', '*/', '//'}
+ local symbols = {'<', '<!--', '-->', '{', '}', '/*', '*/', '//'}
for i = 1, #symbols do assert(html._FOLDPOINTS._SYMBOLS[symbols[i]]) end
assert(html._FOLDPOINTS['element']['<'])
- assert(html._FOLDPOINTS['element']['/>'])
assert(html._FOLDPOINTS['unknown_element']['<'])
- assert(html._FOLDPOINTS['unknown_element']['/>'])
assert(html._FOLDPOINTS[lexer.COMMENT]['<!--'])
assert(html._FOLDPOINTS[lexer.COMMENT]['-->'])
assert(html._FOLDPOINTS[lexer.OPERATOR]['{'])
@@ -939,7 +937,7 @@ function test_php()
tokens = {
{lexer.KEYWORD, 'echo'},
{lexer.STRING, '"hi"'},
- {lexer.OPERATOR, ';'},
+ {lexer.OPERATOR, ';'},
}
assert_lex(php, code, tokens, initial_style)
@@ -1096,7 +1094,7 @@ end
-- Tests the RHTML lexer, which is a proxy for HTML and Rails.
function test_rhtml()
local rhtml = lexer.load('rhtml')
-
+
-- Lexing tests.
-- Start in HTML.
local code = [[<h1><% puts "hi" %></h1>]]