diff options
| author | mitchell <unknown> | 2020-03-29 20:12:40 -0400 |
|---|---|---|
| committer | mitchell <unknown> | 2020-03-29 20:12:40 -0400 |
| commit | d8dfede4dc16846dd15ceeafa79a51c446d7f84e (patch) | |
| tree | e8beb7aedeb7700426714bc53ad821571f95e774 /test/test_lexlua.lua | |
| parent | 852fb493c9557b0f20ce74b5079506152f1955e4 (diff) | |
| download | scintilla-mirror-d8dfede4dc16846dd15ceeafa79a51c446d7f84e.tar.gz | |
lexlua: Fixed incorrect grammar building for lexers that embed themselves.
When there is no initial '*_whitespace' style, child lexers should prefer their
parent's grammar rather than their own.
Diffstat (limited to 'test/test_lexlua.lua')
| -rw-r--r-- | test/test_lexlua.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_lexlua.lua b/test/test_lexlua.lua index c692e0fb1..276f8273c 100644 --- a/test/test_lexlua.lua +++ b/test/test_lexlua.lua @@ -931,6 +931,8 @@ function test_php() } local initial_style = php._TOKENSTYLES['html_whitespace'] assert_lex(php, code, tokens, initial_style) + initial_style = php._TOKENSTYLES['default'] -- also test non-ws init style + assert_lex(php, code, tokens, initial_style) -- Starting in PHP. code = [[echo "hi";]] initial_style = php._TOKENSTYLES['php_whitespace'] |
