From 1981b51d42188a8bc96e1816d469cd5cce66310d Mon Sep 17 00:00:00 2001 From: mitchell Date: Fri, 26 Oct 2018 14:11:07 -0400 Subject: lexlua: Fixed HTML unit test with lexer update. --- test/test_lexlua.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'test/test_lexlua.lua') 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.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 = [[

<% puts "hi" %>

]] -- cgit v1.2.3