Synced with upstream

master
Yevgen Muntyan 2007-04-17 20:10:00 -05:00
parent 4b34b2caee
commit f52f239696
2 changed files with 7 additions and 224 deletions

View File

@ -34,7 +34,7 @@
</configure>
</optimized>
</configurations>
<file_selector_dir>/home/muntyan/projects/moo/</file_selector_dir>
<file_selector_dir>/home/muntyan/projects/moo/moo/mooedit/language-specs/</file_selector_dir>
<run>
<args>--g-fatal-warnings --new-app --mode=project</args>
<exe>medit/medit</exe>

View File

@ -8,16 +8,14 @@
<styles>
<style id="comment" _name="Comment" map-to="def:comment"/>
<style id="documentclass" _name="Comment" map-to="def:keyword"/>
<style id="usepackage" _name="Comment" map-to="def:keyword"/>
<style id="newcommand" _name="Comment" map-to="def:keyword"/>
<style id="display-math" _name="Math Mode"/>
<style id="documentclass" _name="Comment" map-to="def:keyword"/>
<style id="usepackage" _name="Comment" map-to="def:keyword"/>
<style id="newcommand" _name="Comment" map-to="def:keyword"/>
<style id="display-math" _name="Math Mode"/>
<style id="inline-math" _name="Inline Math Mode" map-to="latex:display-math"/>
<style id="structure" _name="Inline Math Mode"/>
<style id="section" _name="Inline Math Mode"/>
<style id="structure" _name="Inline Math Mode"/>
<style id="section" _name="Inline Math Mode"/>
<style id="math" _name="Math Mode" map-to="latex:display-math"/>
<!-- <style id="inline-math" _name="Inline Math Mode" map-to="latex:math"/>-->
<style id="math-bound" _name="math-bound" map-to="latex:display-math"/>
<style id="include" _name="Include" map-to="def:keyword"/>
<style id="common-commands" _name="Command" map-to="def:keyword"/>
@ -26,221 +24,6 @@
</styles>
<definitions>
<!-- <context id="comment" style-ref="comment" end-at-line-end="true">
<start>%</start>
<include>
<context ref="def:in-comment"/>
</include>
</context>
<context id="documentclass">
<start>\\documentclass\b</start>
<end>(?=\S)</end>
<include>
<context sub-pattern="0" where="start" style-ref="documentclass"/>
<context ref="comment"/>
<context once-only="true">
<start>\[</start>
<end>\]</end>
<include>
<context sub-pattern="0" where="start" style-ref="documentclass"/>
<context sub-pattern="0" where="end" style-ref="documentclass"/>
<context ref="comment"/>
<context extend-parent="false" style-ref="documentclass">
<match>[^%]+</match>
</context>
</include>
</context>
<context end-parent="true" end-at-line-end="true">
<start>\{</start>
<end>\}</end>
<include>
<context sub-pattern="0" where="start" style-ref="documentclass"/>
<context sub-pattern="0" where="end" style-ref="documentclass"/>
<context ref="comment"/>
<context extend-parent="false" style-ref="documentclass">
<match>[^%]+</match>
</context>
</include>
</context>
<context end-parent="true">
<match>(?=\S)</match>
</context>
</include>
</context>
<context id="usepackage">
<start>\\usepackage\b</start>
<end>(?=\S)</end>
<include>
<context sub-pattern="0" where="start" style-ref="usepackage"/>
<context ref="comment"/>
<context once-only="true" style-ref="usepackage">
<start>\[</start>
<end>\]</end>
<include>
<context sub-pattern="0" where="start" style-ref="usepackage"/>
<context sub-pattern="0" where="end" style-ref="usepackage"/>
<context ref="comment"/>
<context extend-parent="false" style-ref="usepackage">
<match>[^%]+</match>
</context>
</include>
</context>
<context end-parent="true">
<start>\{</start>
<end>\}</end>
<include>
<context sub-pattern="0" where="start" style-ref="usepackage"/>
<context sub-pattern="0" where="end" style-ref="usepackage"/>
<context ref="comment"/>
<context extend-parent="false" style-ref="usepackage">
<match>[^%]+</match>
</context>
</include>
</context>
<context end-parent="true">
<match>(?=\S)</match>
</context>
</include>
</context>
<context id="newcommand">
<start>\\(re)?newcommand\b</start>
<include>
<context sub-pattern="0" where="start" style-ref="newcommand"/>
<context sub-pattern="0" where="end" style-ref="def:error"/>
<context ref="comment"/>
<context once-only="true" end-at-line-end="true">
<start>\{</start>
<end>\}</end>
<include>
<context sub-pattern="0" where="start" style-ref="newcommand"/>
<context sub-pattern="0" where="end" style-ref="newcommand"/>
<context ref="comment"/>
<context style-ref="newcommand">
<match>\\[a-zA-Z]*</match>
</context>
<context extend-parent="false" style-ref="def:error">
<match>\S</match>
</context>
</include>
</context>
<context once-only="true" end-at-line-end="true">
<start>\[</start>
<end>\]</end>
<include>
<context sub-pattern="0" where="start" style-ref="newcommand"/>
<context sub-pattern="0" where="end" style-ref="newcommand"/>
<context ref="comment"/>
<context extend-parent="false" style-ref="newcommand">
<match>[^%]+</match>
</context>
</include>
</context>
<context end-parent="true">
<start>\{</start>
<end>\}</end>
<include>
<context sub-pattern="0" where="start" style-ref="newcommand"/>
<context sub-pattern="0" where="end" style-ref="newcommand"/>
<context ref="comment"/>
<context ref="latex-text-mode"/>
<context ref="latex-math-mode"/>
</include>
</context>
<context end-parent="true">
<match>(?=\S)</match>
</context>
</include>
</context>
<context id="preamble">
<include>
<context ref="comment"/>
</include>
</context>
<context id="structure">
<include>
<context ref="comment"/>
<context style-ref="structure">
<match>(\\(begin|end)\{)(document)(\})</match>
<include>
<context sub-pattern="3" style-ref="section"/>
</include>
</context>
<context style-ref="structure">
<start>\\(sub)*section\*?</start>
<include>
<context ref="comment"/>
<context end-parent="true" style-ref="section" style-inside="true">
<start>\{</start>
<end>\}</end>
<include>
<context ref="latex-text-mode"/>
</include>
</context>
<context end-parent="true" style-ref="section">
<match>\S</match>
</context>
</include>
</context>
</include>
</context>
<context id="environment">
<start>\\begin\b</start>
<include>
<context ref="comment"/>
<context once-only="true">
<start>\{</start>
<end>\}</end>
<include>
<context ref="comment"/>
</include>
</context>
</include>
</context>
<context id="latex-text-mode">
<include>
<context ref="comment"/>
<context id="display-math" style-ref="display-math">
<start>\$\$</start>
<end>\$\$</end>
<include>
<context ref="latex-math-mode"/>
</include>
</context>
<context id="inline-math" style-ref="inline-math">
<start>\$</start>
<end>\$</end>
<include>
<context ref="latex-math-mode"/>
</include>
</context>
</include>
</context>
<context id="latex-math-mode">
<include>
<context ref="comment"/>
</include>
</context>
<context id="latex">
<include>
<context ref="comment"/>
<context ref="documentclass"/>
<context ref="usepackage"/>
<context ref="newcommand"/>
<context ref="preamble"/>
<context ref="structure"/>
<context ref="latex-text-mode"/>
</include>
</context>
-->
<context id="common-commands" style-ref="common-commands">
<prefix>\\</prefix>