summaryrefslogtreecommitdiff
path: root/support/texlab/tests/scenarios/definition/latex
diff options
context:
space:
mode:
Diffstat (limited to 'support/texlab/tests/scenarios/definition/latex')
-rw-r--r--support/texlab/tests/scenarios/definition/latex/citation/bar.bib3
-rw-r--r--support/texlab/tests/scenarios/definition/latex/citation/baz.bib3
-rw-r--r--support/texlab/tests/scenarios/definition/latex/citation/foo.tex2
-rw-r--r--support/texlab/tests/scenarios/definition/latex/command/foo.tex3
-rw-r--r--support/texlab/tests/scenarios/definition/latex/label/default.tex2
-rw-r--r--support/texlab/tests/scenarios/definition/latex/label/equation.tex6
-rw-r--r--support/texlab/tests/scenarios/definition/latex/label/float.tex7
-rw-r--r--support/texlab/tests/scenarios/definition/latex/label/item.tex7
-rw-r--r--support/texlab/tests/scenarios/definition/latex/label/section.tex7
-rw-r--r--support/texlab/tests/scenarios/definition/latex/label/theorem.tex9
-rw-r--r--support/texlab/tests/scenarios/definition/latex/math_operator/foo.tex3
11 files changed, 52 insertions, 0 deletions
diff --git a/support/texlab/tests/scenarios/definition/latex/citation/bar.bib b/support/texlab/tests/scenarios/definition/latex/citation/bar.bib
new file mode 100644
index 0000000000..af2d2d9e66
--- /dev/null
+++ b/support/texlab/tests/scenarios/definition/latex/citation/bar.bib
@@ -0,0 +1,3 @@
+@article{foo,}
+
+@article{bar,}
diff --git a/support/texlab/tests/scenarios/definition/latex/citation/baz.bib b/support/texlab/tests/scenarios/definition/latex/citation/baz.bib
new file mode 100644
index 0000000000..af2d2d9e66
--- /dev/null
+++ b/support/texlab/tests/scenarios/definition/latex/citation/baz.bib
@@ -0,0 +1,3 @@
+@article{foo,}
+
+@article{bar,}
diff --git a/support/texlab/tests/scenarios/definition/latex/citation/foo.tex b/support/texlab/tests/scenarios/definition/latex/citation/foo.tex
new file mode 100644
index 0000000000..a6d704b46d
--- /dev/null
+++ b/support/texlab/tests/scenarios/definition/latex/citation/foo.tex
@@ -0,0 +1,2 @@
+\bibliography{bar}
+\cite{bar}
diff --git a/support/texlab/tests/scenarios/definition/latex/command/foo.tex b/support/texlab/tests/scenarios/definition/latex/command/foo.tex
new file mode 100644
index 0000000000..29b8ea127e
--- /dev/null
+++ b/support/texlab/tests/scenarios/definition/latex/command/foo.tex
@@ -0,0 +1,3 @@
+\newcommand{\foo}{Foo}
+
+\foo
diff --git a/support/texlab/tests/scenarios/definition/latex/label/default.tex b/support/texlab/tests/scenarios/definition/latex/label/default.tex
new file mode 100644
index 0000000000..263c0e861e
--- /dev/null
+++ b/support/texlab/tests/scenarios/definition/latex/label/default.tex
@@ -0,0 +1,2 @@
+\label{foo}
+\ref{foo}
diff --git a/support/texlab/tests/scenarios/definition/latex/label/equation.tex b/support/texlab/tests/scenarios/definition/latex/label/equation.tex
new file mode 100644
index 0000000000..436d886457
--- /dev/null
+++ b/support/texlab/tests/scenarios/definition/latex/label/equation.tex
@@ -0,0 +1,6 @@
+\begin{equation}%
+\label{eq:foo}
+ Foo
+\end{equation}
+
+\ref{eq:foo}
diff --git a/support/texlab/tests/scenarios/definition/latex/label/float.tex b/support/texlab/tests/scenarios/definition/latex/label/float.tex
new file mode 100644
index 0000000000..9f3cd97fae
--- /dev/null
+++ b/support/texlab/tests/scenarios/definition/latex/label/float.tex
@@ -0,0 +1,7 @@
+\begin{figure}
+Foo
+\caption{Bar}
+\label{fig}
+\end{figure}
+
+\ref{fig}
diff --git a/support/texlab/tests/scenarios/definition/latex/label/item.tex b/support/texlab/tests/scenarios/definition/latex/label/item.tex
new file mode 100644
index 0000000000..a04034f0f8
--- /dev/null
+++ b/support/texlab/tests/scenarios/definition/latex/label/item.tex
@@ -0,0 +1,7 @@
+\begin{enumerate}
+ \item Foo
+ \item\label{bar} Bar
+ \item Baz
+\end{enumerate}
+
+\ref{bar}
diff --git a/support/texlab/tests/scenarios/definition/latex/label/section.tex b/support/texlab/tests/scenarios/definition/latex/label/section.tex
new file mode 100644
index 0000000000..9dd7eeec33
--- /dev/null
+++ b/support/texlab/tests/scenarios/definition/latex/label/section.tex
@@ -0,0 +1,7 @@
+\section{Foo}
+\label{sec:foo}
+
+\section{Bar}
+\label{sec:bar}
+
+\ref{sec:foo}
diff --git a/support/texlab/tests/scenarios/definition/latex/label/theorem.tex b/support/texlab/tests/scenarios/definition/latex/label/theorem.tex
new file mode 100644
index 0000000000..52cac48394
--- /dev/null
+++ b/support/texlab/tests/scenarios/definition/latex/label/theorem.tex
@@ -0,0 +1,9 @@
+\usepackage{amsthm}
+\newtheorem{lemma}{Lemma}
+
+\begin{lemma}%
+\label{thm:foo}
+ Foo
+\end{lemma}
+
+\ref{thm:foo}
diff --git a/support/texlab/tests/scenarios/definition/latex/math_operator/foo.tex b/support/texlab/tests/scenarios/definition/latex/math_operator/foo.tex
new file mode 100644
index 0000000000..1953dc269c
--- /dev/null
+++ b/support/texlab/tests/scenarios/definition/latex/math_operator/foo.tex
@@ -0,0 +1,3 @@
+\DeclareMathOperator{\foo}{foo}
+
+\foo