diff options
author | Norbert Preining <norbert@preining.info> | 2021-11-11 03:00:56 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-11-11 03:00:56 +0000 |
commit | 5749e1b65a86cb035a8e4809e7383a98619b0984 (patch) | |
tree | 7f699c2ae9ef2ae3f063583650a343e0d37f66da /support/texlab/src/syntax/latex/snapshots | |
parent | 3b9a500a47854adcb6f2a248722ae2225d6d7d43 (diff) |
CTAN sync 202111110300
Diffstat (limited to 'support/texlab/src/syntax/latex/snapshots')
6 files changed, 41 insertions, 5 deletions
diff --git a/support/texlab/src/syntax/latex/snapshots/texlab__syntax__latex__lexer__tests__command_with_parameter.snap b/support/texlab/src/syntax/latex/snapshots/texlab__syntax__latex__lexer__tests__command_with_parameter.snap index 9cff735e99..a9a0e11ad7 100644 --- a/support/texlab/src/syntax/latex/snapshots/texlab__syntax__latex__lexer__tests__command_with_parameter.snap +++ b/support/texlab/src/syntax/latex/snapshots/texlab__syntax__latex__lexer__tests__command_with_parameter.snap @@ -37,7 +37,7 @@ expression: "verify(r#\"\\newcommand{\\id}[1]{#1}\"#)" "{", ), ( - PARAMETER, + WORD, "#1", ), ( diff --git a/support/texlab/src/syntax/latex/snapshots/texlab__syntax__latex__lexer__tests__invalid_parameter.snap b/support/texlab/src/syntax/latex/snapshots/texlab__syntax__latex__lexer__tests__invalid_parameter.snap index adadfcf0ef..e947ec3fb6 100644 --- a/support/texlab/src/syntax/latex/snapshots/texlab__syntax__latex__lexer__tests__invalid_parameter.snap +++ b/support/texlab/src/syntax/latex/snapshots/texlab__syntax__latex__lexer__tests__invalid_parameter.snap @@ -5,7 +5,7 @@ expression: "verify(r#\"#\"#)" --- [ ( - PARAMETER, + WORD, "#", ), ] diff --git a/support/texlab/src/syntax/latex/snapshots/texlab__syntax__latex__parser__tests__command_definition_simple.snap b/support/texlab/src/syntax/latex/snapshots/texlab__syntax__latex__parser__tests__command_definition_simple.snap index b0d9b225d0..b6b8380155 100644 --- a/support/texlab/src/syntax/latex/snapshots/texlab__syntax__latex__parser__tests__command_definition_simple.snap +++ b/support/texlab/src/syntax/latex/snapshots/texlab__syntax__latex__parser__tests__command_definition_simple.snap @@ -20,6 +20,7 @@ ROOT@0..23 R_CURLY@18..19 "}" CURLY_GROUP@19..23 L_CURLY@19..20 "{" - PARAMETER@20..22 "#1" + TEXT@20..22 + WORD@20..22 "#1" R_CURLY@22..23 "}" diff --git a/support/texlab/src/syntax/latex/snapshots/texlab__syntax__latex__parser__tests__label_reference_incomplete.snap b/support/texlab/src/syntax/latex/snapshots/texlab__syntax__latex__parser__tests__label_reference_incomplete.snap new file mode 100644 index 0000000000..047eea657d --- /dev/null +++ b/support/texlab/src/syntax/latex/snapshots/texlab__syntax__latex__parser__tests__label_reference_incomplete.snap @@ -0,0 +1,33 @@ +--- +source: src/syntax/latex/parser.rs +expression: "setup(r#\"Equation \\eqref{eq is a \\emph{useful} identity.\"#)" + +--- +ROOT@0..47 + PREAMBLE@0..47 + TEXT@0..9 + WORD@0..8 "Equation" + WHITESPACE@8..9 " " + LABEL_REFERENCE@9..24 + LABEL_REFERENCE_NAME@9..15 "\\eqref" + CURLY_GROUP_WORD_LIST@15..24 + L_CURLY@15..16 "{" + KEY@16..24 + WORD@16..18 "eq" + WHITESPACE@18..19 " " + WORD@19..21 "is" + WHITESPACE@21..22 " " + WORD@22..23 "a" + WHITESPACE@23..24 " " + MISSING@24..24 "" + GENERIC_COMMAND@24..38 + GENERIC_COMMAND_NAME@24..29 "\\emph" + CURLY_GROUP@29..38 + L_CURLY@29..30 "{" + TEXT@30..36 + WORD@30..36 "useful" + R_CURLY@36..37 "}" + WHITESPACE@37..38 " " + TEXT@38..47 + WORD@38..47 "identity." + diff --git a/support/texlab/src/syntax/latex/snapshots/texlab__syntax__latex__parser__tests__parameter.snap b/support/texlab/src/syntax/latex/snapshots/texlab__syntax__latex__parser__tests__parameter.snap index 8c6bd90cb8..4888672c31 100644 --- a/support/texlab/src/syntax/latex/snapshots/texlab__syntax__latex__parser__tests__parameter.snap +++ b/support/texlab/src/syntax/latex/snapshots/texlab__syntax__latex__parser__tests__parameter.snap @@ -5,5 +5,6 @@ expression: "setup(r#\"#1\"#)" --- ROOT@0..2 PREAMBLE@0..2 - PARAMETER@0..2 "#1" + TEXT@0..2 + WORD@0..2 "#1" diff --git a/support/texlab/src/syntax/latex/snapshots/texlab__syntax__latex__parser__tests__parameter_error.snap b/support/texlab/src/syntax/latex/snapshots/texlab__syntax__latex__parser__tests__parameter_error.snap index 1a9b68fa2d..843327ab80 100644 --- a/support/texlab/src/syntax/latex/snapshots/texlab__syntax__latex__parser__tests__parameter_error.snap +++ b/support/texlab/src/syntax/latex/snapshots/texlab__syntax__latex__parser__tests__parameter_error.snap @@ -5,5 +5,6 @@ expression: "setup(r#\"#\"#)" --- ROOT@0..1 PREAMBLE@0..1 - PARAMETER@0..1 "#" + TEXT@0..1 + WORD@0..1 "#" |