Skip to content

Three improvements to LaTeX highlighting #216

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 4 commits into from
Apr 13, 2017
Merged

Conversation

jez
Copy link
Contributor

@jez jez commented Apr 12, 2017

There are three changes in this PR. I'm happy to create separate PRs if you
only want a subset of the changes.

  1. Allow for \[ ... \] delimited math block (previously it was just \( ... \))

  2. Correct some copy/paste errors with \( ... \)

    The previous regex had been copy/pasted from the regex for '$'. It was
    doing special things to try to guess if the '$' was being used for a
    monetary value.

  3. Allow LaTeX highlighting in more places (namely, in blockquotes and footnotes)

Each change is in its own commit if you want to look at them separately.

jez and others added 4 commits April 12, 2017 00:55
The previous regex had been copy/pasted from the regex for '$'. It was
doing special things to try to guess if the '$' was being used for a
monetary value.

It's unnecessary to do this for \(\).
@fmoralesc
Copy link
Member

LGTM. Thanks!

@fmoralesc fmoralesc merged commit 56e8e41 into vim-pandoc:master Apr 13, 2017
davenquinn added a commit to davenquinn/vim-pandoc-syntax that referenced this pull request Aug 10, 2018
* master: (70 commits)
  Three improvements to LaTeX highlighting (vim-pandoc#216)
  Add `pandocAmpersandEscape` syntax for &...; special chars (vim-pandoc#205)
  Fix unicode with sub- or superscripts. (vim-pandoc#202)
  Optionally disable definition lists (vim-pandoc#212)
  Add support for tab-indented code blocks (vim-pandoc#207)
  Never conceal \ in \newcommand... (vim-pandoc#197)
  BufFilePRE => BufFilePre (vim-pandoc#199)
  Fixes for parenthetical citations (vim-pandoc#189)
  Fix footnotes. (vim-pandoc#188)
  Fix reference links
  Fix automatic links by restricting characters in mail links.
  Check 'termguicolors' instead of 'nvim'
  fix typo in doc
  fix for upstream issue vim-pandoc#177
  fix typo
  Conceal char for end of code block
  Add cchar for block end
  added endash and emdash support to syntaxt
  fix for neovim
  Use custom syntax group for operators
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants