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