diff options
author | mitchell <unknown> | 2020-07-08 10:18:42 -0400 |
---|---|---|
committer | mitchell <unknown> | 2020-07-08 10:18:42 -0400 |
commit | be2b4322cbb398b33ee9641d04463b663c781e1a (patch) | |
tree | 0f4dd53dc49dfb2621e8c0ab196c7762230d842a /lexlua/markdown.lua | |
parent | 329559b74b483576a74d5f87eebf951bd12b9200 (diff) | |
download | scintilla-mirror-be2b4322cbb398b33ee9641d04463b663c781e1a.tar.gz |
lexlua: Convert uses of `lexer.STYLE_*` to `lexer.styles.*`.
Diffstat (limited to 'lexlua/markdown.lua')
-rw-r--r-- | lexlua/markdown.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lexlua/markdown.lua b/lexlua/markdown.lua index 733c39fec..e49826e5a 100644 --- a/lexlua/markdown.lua +++ b/lexlua/markdown.lua @@ -28,7 +28,7 @@ lex:add_rule('blockquote', token(lexer.STRING, lex:add_rule('list', token('list', lexer.starts_line(S(' \t')^0 * (S('*+-') + R('09')^1 * '.')) * S(' \t'))) -lex:add_style('list', lexer.STYLE_CONSTANT) +lex:add_style('list', lexer.styles.constant) local hspace = S('\t\v\f\r ') local blank_line = '\n' * hspace^0 * ('\n' + P(-1)) @@ -43,7 +43,7 @@ local code_inline = lpeg.Cmt(lpeg.C(P('`')^1), function(input, index, bt) return (e or #input) + 1 end) lex:add_rule('block_code', token('code', code_line + code_block + code_inline)) -lex:add_style('code', lexer.STYLE_EMBEDDED .. {eolfilled = true}) +lex:add_style('code', lexer.styles.embedded .. {eolfilled = true}) lex:add_rule('hr', token('hr', lpeg.Cmt( lexer.starts_line(S(' \t')^0 * lpeg.C(S('*-_'))), function(input, index, c) @@ -66,7 +66,7 @@ local ref_link_title = token(lexer.STRING, lexer.range('"', true, false) + lexer.range("'", true, false) + lexer.range('(', ')', true)) lex:add_rule('link_label', ref_link_label * ws * ref_link_url * (ws * ref_link_title)^-1) -lex:add_style('link_label', lexer.STYLE_LABEL) +lex:add_style('link_label', lexer.styles.label) lex:add_style('link_url', {underlined = true}) local link_label = P('!')^-1 * lexer.range('[', ']', true) |