Skip to content

A couple of LaTeX improvements #322

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

Merged
merged 2 commits into from
Aug 5, 2019
Merged
Changes from all commits
Commits
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
6 changes: 6 additions & 0 deletions syntax/org.vim
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,11 @@ hi def link hyperlink Underlined
syntax match org_comment /^#.*/
hi def link org_comment Comment

" References: {{{1
syntax match reference '\\ref{.*}' transparent contains=referenceStart,referenceEnd
syntax match referenceStart '\\ref{*' contained conceal cchar=[
syntax match referenceEnd '\(\\ref{\w\+\)\@<=\zs}' contained conceal cchar=]

" Bullet Lists: {{{1
" Ordered Lists:
" 1. list item
Expand Down Expand Up @@ -378,6 +383,7 @@ if exists('g:loaded_SyntaxRange')
call SyntaxRange#Include('\\begin[.*]{.*}', '\\end{.*}', 'tex')
call SyntaxRange#Include('\\begin{.*}', '\\end{.*}', 'tex')
call SyntaxRange#Include('\\\[', '\\\]', 'tex')
call SyntaxRange#Include('\$[^$]', '\$', 'tex')
endif

" vi: ft=vim:tw=80:sw=4:ts=4:fdm=marker