diff --git a/LaTeX/Reference List - Citation.tmPreferences b/LaTeX/Reference List - Citation.tmPreferences new file mode 100644 index 0000000000..2ef0dabc94 --- /dev/null +++ b/LaTeX/Reference List - Citation.tmPreferences @@ -0,0 +1,12 @@ + + + + scope + constant.other.citation.latex + settings + + showInIndexedReferenceList + 1 + + + diff --git a/LaTeX/Symbol List - Citation.tmPreferences b/LaTeX/Symbol List - Citation.tmPreferences new file mode 100644 index 0000000000..70ed5a33b0 --- /dev/null +++ b/LaTeX/Symbol List - Citation.tmPreferences @@ -0,0 +1,14 @@ + + + + scope + entity.name.type.entry-key.bibtex + settings + + showInSymbolList + 1 + showInIndexedSymbolList + 1 + + + diff --git a/LaTeX/tests/syntax_test_bibtex.bib b/LaTeX/tests/syntax_test_bibtex.bib index 5b075ee9d5..94a1653d1c 100644 --- a/LaTeX/tests/syntax_test_bibtex.bib +++ b/LaTeX/tests/syntax_test_bibtex.bib @@ -6,6 +6,7 @@ @string{mar % ^^^^^^^^^^^^^^^ meta.declaration.arguments.bibtex meta.braces.bibtex % ^ punctuation.section.braces.begin.bibtex % ^^^ entity.name.constant.bibtex +% @@@ definition % ^ keyword.operator.assignment.bibtex % ^^^^^^^ meta.string.bibtex string.quoted.double.bibtex % ^ punctuation.section.braces.end.bibtex @@ -16,6 +17,7 @@ @string(aw % ^^^^^^^^^^^^^^^^^^^^^^^^^ meta.declaration.arguments.bibtex meta.parens.bibtex % ^ punctuation.section.parens.begin.bibtex % ^^ entity.name.constant.bibtex +% @@ definition % ^ keyword.operator.assignment.bibtex % ^ punctuation.definition.string.begin.bibtex % ^^^^^^^^^^^^^^^^^^ meta.string.bibtex string.quoted.other.bibtex @@ -49,6 +51,7 @@ @book(paren) % ^^^^^^^ meta.entry.arguments.bibtex meta.parens.bibtex % ^ punctuation.section.parens.begin.bibtex % ^^^^^ entity.name.type.entry-key.bibtex +% @@@@@ definition % ^ punctuation.section.parens.end.bibtex % ^ - meta.entry @@ -56,6 +59,7 @@ @book(paren % <- meta.entry.bibtex keyword.declaration.entry.bibtex punctuation.definition.keyword.bibtex %^^^^ meta.entry.bibtex keyword.declaration.entry.bibtex % ^^^^^^ meta.entry.arguments.bibtex meta.parens.bibtex - meta.mapping +% @@@@@ definition % ^^^^^^^^^^^^^^^^^ meta.entry.arguments.bibtex meta.parens.bibtex meta.mapping - meta.mapping meta.mapping % ^^^^^^ meta.mapping.key.bibtex string.unquoted.key.bibtex % ^ meta.mapping.bibtex punctuation.separator.key-value.bibtex @@ -68,6 +72,7 @@ @book{knuth97 % ^^^^^^^^^ meta.entry.arguments.bibtex % ^ punctuation.section.braces.begin.bibtex % ^^^^^^^ entity.name.type.entry-key.bibtex +% @@@@@@@ definition % ^ punctuation.section.braces.end.bibtex % ^ - meta.entry @@ -79,6 +84,7 @@ @book{knuth97 %^^^^ keyword.declaration.entry.bibtex % ^ punctuation.section.braces.begin.bibtex % ^^^^^^^ entity.name.type.entry-key.bibtex +% @@@@@@@ definition % ^ punctuation.separator.sequence.bibtex author = {Donald E. Knuth}, % ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.entry.arguments.bibtex meta.braces.bibtex - meta.mapping meta.mapping diff --git a/LaTeX/tests/syntax_test_latex.tex b/LaTeX/tests/syntax_test_latex.tex index 5b73b57713..8df9fb095c 100644 --- a/LaTeX/tests/syntax_test_latex.tex +++ b/LaTeX/tests/syntax_test_latex.tex @@ -348,12 +348,14 @@ \subsubsection{name} % ^ meta.group.bracket.latex % ^ constant.other.citation.latex -\Citeauthor*[]{ref} -% ^ meta.function.citation.latex -% ^ support.function.cite.latex -% ^ support.function.cite.latex -% ^ meta.group.bracket.latex -% ^ constant.other.citation.latex +\Citeauthor*[]{knuth97} % Hit F12 to go to definition in syntax_test_bibtex.bib +%^^^^^^^^^^^^^^^^^^^^^^ meta.function.citation.latex +%^^^^^^^^^^^ support.function.cite.latex keyword.other.cite.latex +% ^^ meta.group.bracket.latex +% ^^^^^^^^^ meta.group.brace.tex +% ^ punctuation.definition.group.brace.begin.tex +% ^^^^^^^ constant.other.citation.latex +% ^ punctuation.definition.group.brace.end.tex % URL COMMAND diff --git a/LaTeX/tests/syntax_test_symbol.tex b/LaTeX/tests/syntax_test_symbol.tex new file mode 100644 index 0000000000..67f2f13b24 --- /dev/null +++ b/LaTeX/tests/syntax_test_symbol.tex @@ -0,0 +1,16 @@ +% SYNTAX TEST "Packages/LaTeX/LaTeX.sublime-syntax" + +\cite{knuth97} +% @@@@@@@ reference + +\citeauthor{knuth97} +% @@@@@@@ reference + +\citetitle{knuth97} +% @@@@@@@ reference + +\citeurl{knuth97} +% @@@@@@@ reference + +\citeyear{knuth97} +% @@@@@@@ reference