aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlua/awk.lua
diff options
context:
space:
mode:
authormitchell <unknown>2020-07-08 10:18:42 -0400
committermitchell <unknown>2020-07-08 10:18:42 -0400
commitbe2b4322cbb398b33ee9641d04463b663c781e1a (patch)
tree0f4dd53dc49dfb2621e8c0ab196c7762230d842a /lexlua/awk.lua
parent329559b74b483576a74d5f87eebf951bd12b9200 (diff)
downloadscintilla-mirror-be2b4322cbb398b33ee9641d04463b663c781e1a.tar.gz
lexlua: Convert uses of `lexer.STYLE_*` to `lexer.styles.*`.
Diffstat (limited to 'lexlua/awk.lua')
-rw-r--r--lexlua/awk.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/lexlua/awk.lua b/lexlua/awk.lua
index a34730e1a..cfff1beaf 100644
--- a/lexlua/awk.lua
+++ b/lexlua/awk.lua
@@ -240,7 +240,7 @@ lex:add_rule('field', token('field', P('$') * S('$+-')^0 * (
lexer.word^1 * ('[' * P(scanFieldDelimiters))^-1 +
'"' * P(scanString) +
'/' * P(eatRegex) * '/')))
-lex:add_style('field', lexer.STYLE_LABEL)
+lex:add_style('field', lexer.styles.label)
-- Regular expressions.
-- Slash delimited regular expressions are preceded by most operators or
@@ -249,18 +249,18 @@ lex:add_style('field', lexer.STYLE_LABEL)
-- sequences like '\S', '\s' have special meanings with Gawk. Tokens that
-- contain them are displayed differently.
lex:add_rule('gawkRegex', token('gawkRegex', SLASH * P(scanGawkRegex)))
-lex:add_style('gawkRegex', lexer.STYLE_PREPROCESSOR .. {underlined = true})
+lex:add_style('gawkRegex', lexer.styles.preprocessor .. {underlined = true})
lex:add_rule('regex', token(lexer.REGEX, SLASH * P(scanRegex)))
-- Operators.
lex:add_rule('gawkOperator', token('gawkOperator', P("|&") + "@" + "**=" +
"**"))
-lex:add_style('gawkOperator', lexer.STYLE_OPERATOR .. {underlined = true})
+lex:add_style('gawkOperator', lexer.styles.operator .. {underlined = true})
lex:add_rule('operator', token(lexer.OPERATOR, S('!%&()*+,-/:;<=>?[\\]^{|}~')))
-- Numbers.
lex:add_rule('gawkNumber', token('gawkNumber', lexer.hex_num + lexer.oct_num))
-lex:add_style('gawkNumber', lexer.STYLE_NUMBER .. {underlined = true})
+lex:add_style('gawkNumber', lexer.styles.number .. {underlined = true})
lex:add_rule('number', token(lexer.NUMBER, float))
-- Keywords.
@@ -275,14 +275,14 @@ lex:add_rule('builtInVariable', token('builtInVariable', word_match[[
ARGC ARGV CONVFMT ENVIRON FILENAME FNR FS NF NR OFMT OFS ORS RLENGTH RS RSTART
SUBSEP
]]))
-lex:add_style('builtInVariable', lexer.STYLE_CONSTANT)
+lex:add_style('builtInVariable', lexer.styles.constant)
lex:add_rule('gawkBuiltInVariable', token('gawkBuiltInVariable', word_match[[
ARGIND BINMODE ERRNO FIELDWIDTHS FPAT FUNCTAB IGNORECASE LINT PREC PROCINFO
ROUNDMODE RT SYMTAB TEXTDOMAIN
]]))
lex:add_style(
- 'gawkBuiltInVariable', lexer.STYLE_CONSTANT .. {underlined = true})
+ 'gawkBuiltInVariable', lexer.styles.constant .. {underlined = true})
-- Functions.
lex:add_rule('function', token(lexer.FUNCTION, lexer.word * #P('(')))