Advertisement
Guest User

Untitled

a guest
Feb 2nd, 2022
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.00 KB | None | 0 0
  1. <language id="bash" name="bash" version="2.0" _section="Other">
  2.   <metadata>
  3.     <property name="mimetypes">text/csv;text/plain</property>
  4.     <property name="globs">*.csv;*.txt</property>
  5.     <property name="line-comment-start">\\</property>
  6.     <property name="block-comment-start">//</property>
  7.     <property name="block-comment-end">-/\/\</property>
  8.  
  9.  
  10.   </metadata>
  11.  
  12.   <styles>
  13.     <style id="sip"               name="sip"                    map-to="def:special-char"/>
  14.     <style id="hemail"             name="hemail"                map-to="def:decimal"/>
  15.     <style id="string"            name="String"                 map-to="def:string"/>
  16.     <style id="decimal"           name="Decimal number"         map-to="def:decimal"/>
  17.     <style id="escaped-character" name="Escaped character"      map-to="def:special-char"/>
  18.     <style id="comment"           name="Comment"                map-to="def:comment"/>
  19.  
  20.  
  21.   </styles>
  22.  
  23.   <definitions>
  24.  
  25.  
  26.  <context id="sip" style-ref="sip">
  27.       <start>---&gt;&gt;</start>
  28.       <end>---&gt;&gt;</end>
  29.     <include>
  30.         <context id="hemail" style-ref="hemail">
  31.           <match extended="true">
  32.              (\A\S+@\S+\Z)
  33.           </match>
  34.  
  35.         </context>
  36.  
  37.   </include>
  38.  
  39.     </context>
  40.  
  41.     <context id="string" style-ref="string" class="string" class-disabled="no-spell-check">
  42.       <start>"</start>
  43.       <end>"</end>
  44.       <include>
  45.         <context id="escaped-character" style-ref="escaped-character">
  46.           <match extended="true">
  47.             \"\"   # escaped double-quote
  48.           </match>
  49.         </context>
  50.       </include>
  51.     </context>
  52.     <context id="decimal" style-ref="decimal">
  53.       <match extended="true">
  54.          [0-9]
  55.       </match>
  56.     </context>
  57.  
  58.  
  59.     <context id="bash" class="no-spell-check">
  60.       <include>
  61.         <context ref="decimal"/>
  62.         <context ref="sip"/>
  63.         <context ref="string"/>
  64.         <context ref="hemail"/>
  65.  
  66.       </include>
  67.     </context>
  68.  
  69.  
  70.   </definitions>
  71. </language>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement