Skip to content

Commit

Permalink
Biblatex regexp support (#196)
Browse files Browse the repository at this point in the history
* Biblatex regexp support

* Log changes
  • Loading branch information
Aerijo committed Sep 23, 2018
1 parent 8319fa0 commit 05c94f6
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Expand Up @@ -9,7 +9,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
For contributors: please write down the summary of your change in this Unreleased section
based on http://keepachangelog.com/en/1.0.0/
-->
### Added
- Source text for preview image ([#195](https://github.com/area/language-latex/pull/195)).
- Support for `\regexp{...}` command ([#196](https://github.com/area/language-latex/pull/196)).


## [1.2.0] - 2018-09-23
### Added
- Basic spec for the LaTeX grammar ([#142](https://github.com/area/language-latex/pull/142)).
- Grammar for `gls` and `glstext` like commands ([#160](https://github.com/area/language-latex/pull/160)).
Expand All @@ -24,6 +29,7 @@ based on http://keepachangelog.com/en/1.0.0/
- Changed inline math snippet from `$...$` to `\(...\)` ([#167](https://github.com/area/language-latex/pull/167)).
- Extended magic comment syntax ([#146](https://github.com/area/language-latex/pull/146)).
- Many snippets can now start with an optional backslash ([#181](https://github.com/area/language-latex/pull/181)).
- Updated preview image & removed (broken) activity graph from README ([#194](https://github.com/area/language-latex/pull/194))

### Fixed
- LaTeX only extentions are no longer in the TeX grammar file types ([#148](https://github.com/area/language-latex/pull/148)).
Expand Down Expand Up @@ -145,7 +151,8 @@ __Disclaimer__: Version 0.5.0 is missing due to owner's mistake. See [`3d233d1`]
## 0.1.0 - 2014-02-27
- Initial release.

[Unreleased]: https://github.com/area/language-latex/compare/v1.1.1...HEAD
[Unreleased]: https://github.com/area/language-latex/compare/v1.2.0...HEAD
[1.2.0]: https://github.com/area/language-latex/compare/v1.1.1...v1.2.0
[1.1.1]: https://github.com/area/language-latex/compare/v1.1.0...v1.1.1
[1.1.0]: https://github.com/area/language-latex/compare/v0.1.0...v1.1.0
[1.0.0]: https://github.com/area/language-latex/compare/v0.6.1...v1.0.0
Expand Down
21 changes: 21 additions & 0 deletions grammars/latex.cson
Expand Up @@ -2027,6 +2027,27 @@
'match': '((\\\\)lstinline(?![a-zA-Z])[\\*]?)\\s*((\\[)(?>\\{.*?\\}|[^\\]])*(\\]))?\\s*(\\S)(.*?)(\\6|$)'
'name': 'meta.function.listing.latex'
}
{
'captures':
'1':
'name': 'support.function.regexp.latex'
'2':
'name': 'punctuation.definition.function.latex'
'3':
'name': 'punctuation.definition.regexp.begin.latex'
'4':
'name': 'markup.other.regexp.latex'
'patterns': [
{
'match': '\\\\.'
'name': 'constant.character.escape.regexp.latex'
}
]
'5':
'name': 'punctuation.definition.regexp.end.latex'
'match': '((\\\\)regexp)\\s*(\\{)((?:\\\\.|[^}])*)(\\}|$)'
'name': 'meta.function.regexp.latex'
}
{
'begin': '\\\\\\('
'beginCaptures':
Expand Down

0 comments on commit 05c94f6

Please sign in to comment.