Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LaTeX] rewrite syntaxes #370

Merged
merged 56 commits into from
Jul 22, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
394a585
[LaTeX] rewrite syntaxes
randy3k May 8, 2016
e66e87c
[R] fix rd syntax, use new LaTeX syntax
randy3k May 11, 2016
bd3b91e
[LaTeX] some improvements
randy3k May 11, 2016
d15caa1
[LaTeX] Tests initial import
r-stein May 11, 2016
7d27868
[LaTeX] Tests for commands inside arguments
r-stein May 11, 2016
c1ff87c
[LaTeX] Test support for package `comment`
r-stein May 11, 2016
31fb48a
[LaTeX] Test support for packages `listings`
r-stein May 11, 2016
a79e967
[LaTeX] Test support for packages `minted`
r-stein May 11, 2016
7b4c675
[LaTeX] Tests for latex math support
r-stein May 11, 2016
045e679
[LaTeX] Fix section symbols list
r-stein May 11, 2016
2bcbc5b
[LaTeX] Update the way of detecting arguments
randy3k May 12, 2016
ae42e4d
[LaTeX] fix regex compatability
randy3k May 13, 2016
0c4f941
[LaTeX] use POSIX regex
randy3k May 13, 2016
31b89c1
[LaTeX] Add support for LaTeX package `comment`
r-stein May 24, 2016
b4ee686
[LaTeX] refactor the main section
randy3k May 24, 2016
f621e7e
[Haskell] use the new latex syntax
randy3k May 24, 2016
243cde5
[LaTeX] list of biblatex commands
randy3k May 25, 2016
3b7eafa
[LaTeX] rename 1stlisting to pkglistings
randy3k May 26, 2016
36f0ef4
[LaTeX] should be push
randy3k May 28, 2016
3dc93a4
[LaTeX] added minted and fixed some syntax tests
randy3k May 28, 2016
16aa4bc
[LaTeX] use A-Za-z instead
randy3k May 28, 2016
76e3c75
[LaTeX] add mint/mintinline and fix all tests
randy3k May 28, 2016
b6d3f84
[LaTeX] fix ref issue
randy3k May 28, 2016
acaf9f6
[LaTeX] Add tests for label/ref/cite and url
r-stein May 28, 2016
a4f70ea
[LaTeX] Add tests for list environments
r-stein May 28, 2016
a32bc57
[LaTeX] Improve style
randy3k May 29, 2016
4221cdf
[LaTeX] lstlisting supported languages
randy3k May 30, 2016
741ae16
[LaTeX] minted supported languages
randy3k May 30, 2016
61a8ba6
[LaTeX] specific inline and block math env
randy3k May 30, 2016
d3a646a
[LaTeX] improve inline and block math env
randy3k May 30, 2016
73c15bf
[LaTeX] allow newcommand*
randy3k Jun 1, 2016
b1c7b6b
[Haskell] Use meta.group.brace and meta.group.bracket
randy3k Jun 2, 2016
22909f2
[R] Use meta.group.brace and meta.group.bracket
randy3k Jun 2, 2016
726ba7b
[LaTeX] Use meta.group.brace and meta.group.bracket
randy3k Jun 2, 2016
8567870
[LaTeX] fix tests
randy3k Jun 4, 2016
3a98fff
[LaTeX] remove invalid quotation
randy3k Jun 13, 2016
ea31302
[R] update math scope name
randy3k Jun 25, 2016
05f94e9
[LaTeX] Let \input end with word boundaries
r-stein Jun 28, 2016
8eb7a8c
[LaTeX] apply storage.modifier and entity.name to \def and \newcommand
randy3k Jul 1, 2016
e5ba277
[LaTeX] add DeclareMathOperator
randy3k Jul 1, 2016
b187f78
[LaTeX] capture the content of \cite, \label and \ref
randy3k Jul 1, 2016
786c0b9
[LaTeX] apply entity.name.label to label and add spelling_selector
randy3k Jul 1, 2016
c5defdd
[LaTeX] highlight the options in usepackage and documentclass
randy3k Jul 1, 2016
22536a7
[LaTeX] forgot to enabe extended mode
randy3k Jul 2, 2016
bfe402b
[LaTeX] typo..
randy3k Jul 2, 2016
6af1593
[LaTeX] improve documentclass and usepackage options highlight
randy3k Jul 2, 2016
5dae6ae
[LaTeX] dont spell check includegrpahics
randy3k Jul 3, 2016
bd31967
[LaTeX] fix includegraphics test
randy3k Jul 3, 2016
cdb7265
[LaTeX] improve optional arguments match
randy3k Jul 3, 2016
a1f6ed9
[LaTeX] hightlight non-breaking space
randy3k Jul 13, 2016
fb7a622
use keyword and storange to scope cite/ref/label
randy3k Jul 13, 2016
ade66e0
apply keyword.control.flow to begin/end pair
randy3k Jul 13, 2016
1c75ac8
[LaTeX] more matches for begin/end pair
randy3k Jul 15, 2016
a113bd1
[LaTeX] Change math be envs to only scope the content
r-stein Jul 15, 2016
b85b54f
[LaTeX] Adapt syntax text to recent changes
r-stein Jul 15, 2016
23f17cb
[LaTeX] match cite/ref optional arguments
randy3k Jul 17, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 32 additions & 9 deletions Haskell/Literate Haskell.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,45 @@ file_extensions:
- lhs
scope: text.tex.latex.haskell
contexts:
prototype:
- include: scope:text.tex.latex#comments

main:
- match: '^((\\)begin)({)code(})(\s*\n)?'
- include: scope:text.tex.latex#unique-latex
- include: scope:text.tex.latex#packages
- include: haskell-code
- include: scope:text.tex.latex#plain-tex
- include: scope:text.tex.latex#begin-end-commands
- include: scope:text.tex.latex#general-commands
- include: global-braces

global-braces:
- match: '\{'
scope: punctuation.definition.group.brace.begin.latex
push:
- meta_scope: meta.group.brace.latex
- match: '\}'
scope: punctuation.definition.group.brace.end.latex
pop: true
- include: main

haskell-code:
- match: '(?:\s*)((\\)begin)(\{)(code)(\})'
captures:
1: support.function.be.latex
2: punctuation.definition.function.latex
3: punctuation.definition.arguments.begin.latex
4: punctuation.definition.arguments.end.latex
2: punctuation.definition.backslash.latex
3: punctuation.definition.group.brace.begin.latex
4: variable.parameter.function.latex
5: punctuation.definition.group.brace.end.latex
push:
- meta_scope: meta.function.embedded.haskell.latex
- meta_content_scope: source.haskell.embedded.latex
- match: '^((\\)end)({)code(})'
- match: '((\\)end)(\{)(code)(\})'
captures:
1: support.function.be.latex
2: punctuation.definition.function.latex
3: punctuation.definition.arguments.begin.latex
4: punctuation.definition.arguments.end.latex
2: punctuation.definition.backslash.latex
3: punctuation.definition.group.brace.begin.latex
4: variable.parameter.function.latex
5: punctuation.definition.group.brace.end.latex
pop: true
- include: scope:source.haskell
- include: scope:text.tex.latex
14 changes: 14 additions & 0 deletions LaTeX/Indentation Rules.tmPreferences
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>scope</key>
<string>text.tex</string>
<key>settings</key>
<dict>
<key>decreaseIndentPattern</key>
<string>^\s*\\end\s*\{(?:itemize|enumerate|description)\*?\}\s*$</string>
<key>increaseIndentPattern</key>
<string>^\s*\\begin\s*\{(?:itemize|enumerate|description)\*?\}\s*$</string>
</dict>
</dict>
</plist>
36 changes: 0 additions & 36 deletions LaTeX/LaTeX Beamer.sublime-syntax

This file was deleted.

68 changes: 0 additions & 68 deletions LaTeX/LaTeX Memoir.sublime-syntax

This file was deleted.

4 changes: 4 additions & 0 deletions LaTeX/LaTeX.sublime-settings
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"spelling_selector": "-(comment, source, constant, keyword, storage, support, variable, markup.underline.link, meta.tag, meta.preamble, meta.include, meta.function.citation, meta.function.reference, meta.function.label, meta.function.includegraphics)",
"word_separators": "_./\\()\"'-:,.;<>~!@#$%^&*|+=[]{}`~?"
}
Loading