diff options
| author | mitchell <unknown> | 2018-10-26 14:11:07 -0400 | 
|---|---|---|
| committer | mitchell <unknown> | 2018-10-26 14:11:07 -0400 | 
| commit | 1981b51d42188a8bc96e1816d469cd5cce66310d (patch) | |
| tree | 5795eb2dca77f2401c6f1302cb152320b840d95c | |
| parent | cfc68c01339d6e9dfe3785f61e1d1420ccb10cbe (diff) | |
| download | scintilla-mirror-1981b51d42188a8bc96e1816d469cd5cce66310d.tar.gz | |
lexlua: Fixed HTML unit test with lexer update.
| -rw-r--r-- | test/test_lexlua.lua | 8 | 
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>]]  | 
