]> matita.cs.unibo.it Git - helm.git/commitdiff
Finished
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Mon, 11 Jan 2010 16:59:40 +0000 (16:59 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Mon, 11 Jan 2010 16:59:40 +0000 (16:59 +0000)
helm/software/matita/matita.lang

index f4e3e13810225855546db7b21322af022dcff073..2ba1967a06e5aaaa6b176ff6ad05398bf929650a 100644 (file)
@@ -9,19 +9,18 @@
 
   <styles>
     <style id="comment" _name="Comment" map-to="def:comment"/>
-    <style id="base-n-integer" _name="Base-N Integer" map-to="def:base-n-integer"/>
     <style id="string" _name="String" map-to="def:string"/>
+    <style id="escape" _name="Escape" map-to="def:string"/>
     <style id="keyword" _name="Keyword" map-to="def:keyword"/>
     <style id="type" _name="Data Type" map-to="def:type"/>
     <style id="latex" _name="LaTeX Escaped" map-to="def:special-char"/>
     <style id="macros" _name="Macros" map-to="def:keyword"/>
-    <style id="escape" _name="Escaped Character" map-to="def:special-char"/>
+    <style id="tinycals" _name="Tinycals" map-to="def:keyword"/>
+    <style id="quantifiers" _name="Quantifiers" map-to="def:type"/>
   </styles>
 
   <definitions>
-    <define-regex id="cap-ident">\b[A-Z][A-Za-z0-9_']*</define-regex>
-    <define-regex id="low-ident">\b[a-z][A-Za-z0-9_']*</define-regex>
-    <define-regex id="char-esc">\\((\\|"|'|n|t|b|r)|[0-9]{3}|x[0-9a-fA-F]{2})</define-regex>
+    <define-regex id="char-esc">\\"|[0-9a-zA-Z]</define-regex>
     <context id="escape-seq" style-ref="escape">
       <match>\%{char-esc}</match>
     </context>
           <keyword>Type[2]</keyword>
           <keyword>CProp[2]</keyword>
        </context>
+        <context id="quantifiers" style-ref="quantifiers">
+          <!-- quantifiers -->
+          <match>∀|∃|λ|=|→|⇒|…|≝|≡|\?</match>
+        </context>
+        <context id="tinycals" style-ref="tinycals">
+          <match>\[|\||\]|\{|\}|@|\$|#|\\\\|;|\.|:>|:</match>
+        </context>
       </include>
     </context>
   </definitions>
-
-<!--
-  <pattern-item _name = "Command [" style = "Keyword">
-    <regex>\[</regex>
-  </pattern-item>
-  <pattern-item _name = "Command |" style = "Keyword">
-    <regex>\|</regex>
-  </pattern-item>
-  <pattern-item _name = "Command ]" style = "Keyword">
-    <regex>\]</regex>
-  </pattern-item>
-  <pattern-item _name = "Command {" style = "Keyword">
-    <regex>\{</regex>
-  </pattern-item>
-  <pattern-item _name = "Command }" style = "Keyword">
-    <regex>\}</regex>
-  </pattern-item>
-  <pattern-item _name = "Notation ast mark" style = "Keyword">
-    <regex>@</regex>
-  </pattern-item>
-  <pattern-item _name = "Notation meta mark" style = "Keyword">
-    <regex>\$</regex>
-  </pattern-item>
-  -->
 </language>