Commit bcd8d51d authored by schrieveslaach's avatar schrieveslaach Committed by Sébastien Wilmet

bibtex.lang: add string context for bib(la)tex values

https://bugzilla.gnome.org/show_bug.cgi?id=762990
parent 97d71475
......@@ -31,6 +31,7 @@
<styles>
<style id="entry-type" _name="Entries" map-to="def:keyword"/>
<style id="field" _name="Field" map-to="def:identifier"/>
<style id="string" _name="String" map-to="def:string"/>
</styles>
<default-regex-options case-sensitive="false"/>
......@@ -97,11 +98,23 @@
<keyword>year</keyword>
</context>
<context id="string" class-disabled="no-spell-check">
<match extended="true">
=\s*(\{.*?\})|(".*?")
</match>
<include>
<context sub-pattern="1" style-ref="string" class="string"/>
<context sub-pattern="2" style-ref="string" class="string"/>
</include>
</context>
<context id="bibtex">
<include>
<context ref="latex:latex"/>
<context ref="entry-type"/>
<context ref="field"/>
<context ref="string"/>
</include>
</context>
</definitions>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment