summaryrefslogtreecommitdiff
path: root/support/texlab/src/tests/text_document/snapshots/texlab__tests__text_document__inlay_hint__label_definition.snap
blob: ff04d65efbdd85117cb80fc4deb5ec92e21a7ed6 (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
---
source: src/tests/text_document/inlay_hint.rs
expression: "check(r#\"\n%TEX main.tex\n%SRC \\documentclass{article}\n%SRC \\usepackage{caption}\n%SRC \\begin{document}\n%SRC \\section{Foo}\\label{sec:foo}\n%SRC \\section{Bar}\\label{sec:bar}\n%SRC \\subsection{Baz}\\label{sec:baz}\n%SRC \\begin{figure}\n%SRC     Test\n%SRC     \\label{fig:qux}\n%SRC     \\caption{Qux}\n%SRC \\end{figure}\n%SRC \\end{document}\n\n%TEX main.aux\n%SRC \\relax \n%SRC \\providecommand*\\caption@xref[2]{\\@setref\\relax\\@undefined{#1}}\n%SRC \\newlabel{fig:qux}{{\\caption@xref {fig:qux}{ on input line 15}}{1}}\n%SRC \\@writefile{lof}{\\contentsline {figure}{\\numberline {1}{\\ignorespaces Qux\\relax }}{1}{}\\protected@file@percent }\n%SRC \\@writefile{toc}{\\contentsline {section}{\\numberline {1}Foo}{1}{}\\protected@file@percent }\n%SRC \\newlabel{sec:foo}{{1}{1}}\n%SRC \\@writefile{toc}{\\contentsline {section}{\\numberline {2}Bar}{1}{}\\protected@file@percent }\n%SRC \\newlabel{sec:bar}{{2}{1}}\n%SRC \\@writefile{toc}{\\contentsline {subsection}{\\numberline {2.1}Baz}{1}{}\\protected@file@percent }\n%SRC \\newlabel{sec:baz}{{2.1}{1}}\n%SRC \\gdef \\@abspage@last{1}\n\"#)?"
---
[
  {
    "position": {
      "line": 3,
      "character": 27
    },
    "label": "Section 1 (Foo)",
    "paddingLeft": true
  },
  {
    "position": {
      "line": 4,
      "character": 27
    },
    "label": "Section 2 (Bar)",
    "paddingLeft": true
  },
  {
    "position": {
      "line": 5,
      "character": 30
    },
    "label": "Subsection 2.1 (Baz)",
    "paddingLeft": true
  },
  {
    "position": {
      "line": 8,
      "character": 18
    },
    "label": "Figure fig:qux: Qux",
    "paddingLeft": true
  }
]