summaryrefslogtreecommitdiff
path: root/support/texlab/src/syntax/latex/snapshots/texlab__syntax__latex__lexer__tests__command_with_parameter.snap
blob: 9cff735e99619e0f0541c9a5bd89ce1ce2013490 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
source: src/syntax/latex/lexer.rs
expression: "verify(r#\"\\newcommand{\\id}[1]{#1}\"#)"

---
[
    (
        COMMAND_DEFINITION_NAME,
        "\\newcommand",
    ),
    (
        L_CURLY,
        "{",
    ),
    (
        GENERIC_COMMAND_NAME,
        "\\id",
    ),
    (
        R_CURLY,
        "}",
    ),
    (
        L_BRACK,
        "[",
    ),
    (
        WORD,
        "1",
    ),
    (
        R_BRACK,
        "]",
    ),
    (
        L_CURLY,
        "{",
    ),
    (
        PARAMETER,
        "#1",
    ),
    (
        R_CURLY,
        "}",
    ),
]