[gtksourceview] language-specs: remove trailing spaces



commit 48f6faccf5e3748f8c09436529300ea01ea239f9
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Wed Sep 6 14:35:34 2017 +0200

    language-specs: remove trailing spaces

 data/language-specs/awk.lang       |    4 +-
 data/language-specs/bibtex.lang    |    2 +-
 data/language-specs/cg.lang        |   14 +++---
 data/language-specs/eiffel.lang    |   10 ++--
 data/language-specs/fsharp.lang    |   48 +++++++++---------
 data/language-specs/j.lang         |    8 ++--
 data/language-specs/julia.lang     |    4 +-
 data/language-specs/kotlin.lang    |   26 +++++-----
 data/language-specs/m4.lang        |    4 +-
 data/language-specs/mediawiki.lang |    2 +-
 data/language-specs/modelica.lang  |    2 +-
 data/language-specs/nemerle.lang   |    4 +-
 data/language-specs/ocl.lang       |    6 +-
 data/language-specs/ooc.lang       |   10 ++--
 data/language-specs/prolog.lang    |    8 ++--
 data/language-specs/scala.lang     |    8 ++--
 data/language-specs/vbnet.lang     |    6 +-
 data/language-specs/yaml.lang      |   92 ++++++++++++++++++------------------
 18 files changed, 129 insertions(+), 129 deletions(-)
---
diff --git a/data/language-specs/awk.lang b/data/language-specs/awk.lang
index 937515c..1ce7f29 100644
--- a/data/language-specs/awk.lang
+++ b/data/language-specs/awk.lang
@@ -88,7 +88,7 @@
       <keyword>RLENGTH</keyword>
       <keyword>TEXTDOMAIN</keyword>
     </context>
-    
+
     <context id="built-in-functions" style-ref="builtin-function">
       <keyword>gsub</keyword>
       <keyword>index</keyword>
@@ -101,7 +101,7 @@
       <keyword>tolower</keyword>
       <keyword>toupper</keyword>
     </context>
-    
+
     <context id="arithmetic-functions" style-ref="builtin-function">
       <keyword>atan2</keyword>
       <keyword>cos</keyword>
diff --git a/data/language-specs/bibtex.lang b/data/language-specs/bibtex.lang
index 725b97b..4f8becd 100644
--- a/data/language-specs/bibtex.lang
+++ b/data/language-specs/bibtex.lang
@@ -34,7 +34,7 @@
   </styles>
 
   <default-regex-options case-sensitive="false"/>
-  
+
   <definitions>
 
     <context id="entry-type" style-ref="entry-type" class="no-spell-check">
diff --git a/data/language-specs/cg.lang b/data/language-specs/cg.lang
index 42f8284..d9a2edb 100644
--- a/data/language-specs/cg.lang
+++ b/data/language-specs/cg.lang
@@ -176,7 +176,7 @@
                     <keyword>POSITION</keyword>
                     <keyword>NORMAL</keyword>
                 </context>
-                
+
                 <context id="color-bindings" style-ref="bindings">
                     <match extended="true">COLOR[0-3]?</match>
                 </context>
@@ -184,24 +184,24 @@
                 <context id="texunit-bindings" style-ref="bindings">
                     <match extended="true">TEXUNIT([0-9]|1[0-5])?</match>
                 </context>
-                 
+
                 <context id="texcoord-bindings" style-ref="bindings">
                     <match extended="true">TEXCOORD[0-7]?</match>
                 </context>
-                 
+
                 <context id="swizzle">
                     <match extended="true">\.([xyzw]+|[rgba]+)</match>
                     <include>
                         <context id="swizzle-operator" sub-pattern="1" style-ref="swizzle"/>
                     </include>
                 </context>
-                 
-                <!-- C99 booleans -->                
+
+                <!-- C99 booleans -->
                 <context id="boolean" style-ref="boolean">
                     <keyword>true</keyword>
                     <keyword>false</keyword>
                 </context>
-                
+
                 <context id="builtin">
                     <match extended="true">
                         (mul|lit|lerp|saturate|abs|cos|acos|sin|asin|tan|atan|all|any|ceil|clamp|
@@ -216,7 +216,7 @@
                         <context id="builtin-name" sub-pattern="1" style-ref="builtin"/>
                     </include>
                 </context>
-                
+
                 <context id="function">
                     <match extended="true">
                         ([a-zA-Z_][a-zA-Z_0-9]*)\s*\(
diff --git a/data/language-specs/eiffel.lang b/data/language-specs/eiffel.lang
index 960da2f..2cbab82 100644
--- a/data/language-specs/eiffel.lang
+++ b/data/language-specs/eiffel.lang
@@ -54,13 +54,13 @@
       <end>'</end>
     </context>
 
-    
+
     <context id="multi-line-string" style-ref="string" class="string" class-disabled="no-spell-check">
       <start>"\[</start>
       <end>\]"</end>
-      
+
     </context>
-    
+
     <context id="double-quoted-string" style-ref="string" class="string" class-disabled="no-spell-check">
       <start>"</start>
       <end>"</end>
@@ -72,8 +72,8 @@
          </context>
        </include>
     </context>
-    
-    
+
+
 
     <context id="line-comment" style-ref="comment" end-at-line-end="true" class="comment" 
class-disabled="no-spell-check">
       <start>--</start>
diff --git a/data/language-specs/fsharp.lang b/data/language-specs/fsharp.lang
index 93e0e87..e4279fb 100644
--- a/data/language-specs/fsharp.lang
+++ b/data/language-specs/fsharp.lang
@@ -50,25 +50,25 @@
     <style id="preprocessor" _name="Preprocessor" map-to="def:preprocessor"/>
     <style id="null-value" _name="Null Value" map-to="def:special-constant"/>
   </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="preproc-start">^\s*#\s*</define-regex>
     <define-regex id="symbolchar">[!#$%&amp;*+./&gt;=&lt;?@:\\^|~-]</define-regex>
-  
+
     <context id="escape-seq" style-ref="escape">
       <match>\%{char-esc}</match>
     </context>
-       
+
     <context id="line-comment" style-ref="comment" end-at-line-end="true" class="comment" 
class-disabled="no-spell-check">
       <start>//</start>
         <include>
           <context ref="def:in-line-comment"/>
         </include>
     </context>
-    
+
     <context id="multiline-comment" style-ref="comment" class="comment" class-disabled="no-spell-check">
       <start>\(\*</start>
       <end>\*\)</end>
@@ -77,7 +77,7 @@
           <context ref="def:in-comment:*"/>
         </include>
     </context>
-    
+
     <context id="if0-comment" style-ref="comment" class="comment" class-disabled="no-spell-check">
       <start>\%{preproc-start}if\b\s*0\b</start>
       <end>\%{preproc-start}(endif|else|elif)\b</end>
@@ -93,7 +93,7 @@
         <context ref="def:in-comment"/>
       </include>
     </context>
-    
+
     <context id="preprocessor" style-ref="preprocessor" end-at-line-end="true">
       <start extended="true">
         \%{preproc-start}
@@ -106,23 +106,23 @@
         <context ref="multiline-comment"/>
       </include>
     </context>
-    
+
     <context id="hex-number" style-ref="base-n-integer">
       <match>[-]?0[xX][0-9A-Fa-f][0-9A-Fa-f_]*[lL]?</match>
     </context>
-    
+
     <context id="octal-number" style-ref="base-n-integer">
       <match>[-]?0[oO][0-7][0-7_]*[lL]?</match>
     </context>
-    
+
     <context id="binary-number" style-ref="base-n-integer">
       <match>[-]?0[bB][01][01_]*[lL]?</match>
     </context>
-    
+
     <context id="label" style-ref="label">
       <match>[~?]\%{low-ident}</match>
     </context>
-    
+
     <context id="if-false-comment" style-ref="comment">
       <start>\%{preproc-start}if\s*false\b</start>
       <end>\%{preproc-start}(endif|else|elif)\b</end>
@@ -138,19 +138,19 @@
           <context ref="def:in-comment"/>
       </include>
     </context>
-    
+
     <context id="poly-variant" style-ref="poly-variant">
       <match>`\%{cap-ident}</match>
     </context>
-    
+
     <context id="modpath" style-ref="module">
       <match>\%{cap-ident}(\.\%{cap-ident})*(?=\.)</match>
     </context>
-    
+
     <context id="variant" style-ref="variant">
       <match>\%{cap-ident}</match>
     </context>
-    
+
     <context id="string" style-ref="string">
       <start>"</start>
       <end>"</end>
@@ -158,20 +158,20 @@
         <context ref="escape-seq"/>
       </include>
     </context>
-    
+
     <context id="character-constant" style-ref="string">
       <match>('\%{char-esc}')|('[^\\']')</match>
     </context>
-    
+
     <context id="type-var" style-ref="type-var">
       <match>'\%{low-ident}</match>
     </context>
-    
+
     <context id="arraylit">
       <start>\[\|</start>
       <end>\|\]</end>
     </context>
-    
+
     <context id="decimal" style-ref="decimal">
       <match extended="true">
         (?&lt;![\w\.])
@@ -179,12 +179,12 @@
         (?![\w\.])
       </match>
     </context>
-    
+
     <context id="boolean-constant" style-ref="boolean">
       <keyword>true</keyword>
       <keyword>false</keyword>
     </context>
-    
+
     <context id="keysymbol" style-ref="keyword">
       <prefix>(?&lt;!\%{symbolchar})</prefix>
       <suffix>(?!\%{symbolchar})</suffix>
@@ -202,7 +202,7 @@
         <keyword>&amp;&amp;</keyword>
         <keyword>&amp;</keyword>
     </context>
-    
+
     <context id="keywords" style-ref="keyword">
       <keyword>abstract</keyword>
       <keyword>and</keyword>
@@ -307,9 +307,9 @@
         <context ref="variant"/>
         <context ref="modpath"/>
         <context ref="poly-variant"/>
-        <context ref="label"/> 
+        <context ref="label"/>
         <context ref="binary-number"/>
-        <context ref="octal-number"/> 
+        <context ref="octal-number"/>
         <context ref="hex-number"/>
         <context ref="line-comment"/>
         <context ref="multiline-comment"/>
diff --git a/data/language-specs/j.lang b/data/language-specs/j.lang
index 03bb555..705d123 100644
--- a/data/language-specs/j.lang
+++ b/data/language-specs/j.lang
@@ -3,7 +3,7 @@
 
  This file is part of GtkSourceView
 
- Authors: Jsoftware, Ric Sherlock 
+ Authors: Jsoftware, Ric Sherlock
  Copyright (C) 2011 Ric Sherlock <tikkanz gmail com>
 
  GtkSourceView is free software; you can redistribute it and/or
@@ -56,7 +56,7 @@
       <start>\%[NB\.</start>
     </context>
 
-    <!-- 'abcde' (Strings) -->  
+    <!-- 'abcde' (Strings) -->
     <context id="string" style-ref="string" end-at-line-end="true">
       <start>L?'</start><end>'</end>
     </context>
@@ -82,7 +82,7 @@
     <context id="verb" style-ref="verb">
       <match extended="true">
         ((_?[0-9]:)|
-        (\%[p\.\.)|              
+        (\%[p\.\.)|
         (\%[[AcCeEiIjLopr]\.)|
         (\%[[ipqsux]:)|
         ({::)|
@@ -96,7 +96,7 @@
     <!-- Adverbs -->
     <context id="adverb" style-ref="adverb">
       <match extended="true">
-        (([\/\\]\.)| 
+        (([\/\\]\.)|
         (\%[[bfMt]\.)|
         (\%[t:)|
         ([\~\/\\\}]))
diff --git a/data/language-specs/julia.lang b/data/language-specs/julia.lang
index b6abfbe..19aa728 100644
--- a/data/language-specs/julia.lang
+++ b/data/language-specs/julia.lang
@@ -217,8 +217,8 @@
     <context id="module" style-ref="module">
       <!-- http://docs.julialang.org/en/latest/manual/modules/#standard-modules -->
       <keyword>Base</keyword>
-      <keyword>Core</keyword> 
-      <keyword>Main</keyword> 
+      <keyword>Core</keyword>
+      <keyword>Main</keyword>
       <!-- exports.jl -->
       <keyword>PCRE</keyword>
       <keyword>FFTW</keyword>
diff --git a/data/language-specs/kotlin.lang b/data/language-specs/kotlin.lang
index b019ec4..80352bd 100644
--- a/data/language-specs/kotlin.lang
+++ b/data/language-specs/kotlin.lang
@@ -51,22 +51,22 @@
   </styles>
 
   <definitions>
-  
+
     <define-regex id="simple-name">[a-zA-Z_$][a-zA-Z_$0-9]*</define-regex>
-  
-    <define-regex id="compound-name">\%{simple-name}(\.\%{simple-name})*</define-regex>  
-  
+
+    <define-regex id="compound-name">\%{simple-name}(\.\%{simple-name})*</define-regex>
+
     <define-regex id="annotation-target" extended="true">
       field|file|property|get|set|receiver|param|setparam|delegate
     </define-regex>
-  
+
     <context id="annotation" style-ref="special">
       <match extended="true">
           @(\%{annotation-target}:)?
           ( \%{compound-name} | \[ (\%{compound-name} \s*)+ \] )
       </match>
     </context>
-  
+
     <context id="block-comment" style-ref="comment">
       <start>/\*</start>
       <end>\*/</end>
@@ -81,7 +81,7 @@
       <keyword>super</keyword>
       <keyword>this@?</keyword>
     </context>
-    
+
     <define-regex id="escaped-character" extended="true">
       \\(               # leading backslash
       [\\\"\'nrbt$] |   # escaped character
@@ -96,7 +96,7 @@
     <context id="character-error" style-ref="error">
       <match>'(\%{escaped-character}|.)[^\s]+'</match>
     </context>
-    
+
     <context id="declaration" style-ref="declaration">
       <keyword>class</keyword>
       <keyword>constructor</keyword>
@@ -290,7 +290,7 @@
       <keyword>Unit</keyword>
       <keyword>UnsupportedOperationException</keyword>
       <keyword>NotImplementedError</keyword>
-      
+
       <!-- kotlin.collections -->
       <keyword>AbstractCollection</keyword>
       <keyword>AbstractIterator</keyword>
@@ -331,7 +331,7 @@
       <keyword>RandomAccess</keyword>
       <keyword>Set</keyword>
       <keyword>ShortIterator</keyword>
-      
+
       <!-- kotlin.ranges -->
       <keyword>CharProgression</keyword>
       <keyword>CharRange</keyword>
@@ -341,10 +341,10 @@
       <keyword>IntRange</keyword>
       <keyword>LongProgression</keyword>
       <keyword>LongRange</keyword>
-      
+
       <!-- kotlin.sequences -->
       <keyword>Sequence</keyword>
-      
+
       <!-- kotlin.text -->
       <keyword>Appendable</keyword>
       <keyword>CharCategory</keyword>
@@ -357,7 +357,7 @@
       <keyword>Regex</keyword>
       <keyword>RegexOption</keyword>
       <keyword>StringBuilder</keyword>
-      <keyword>Typography</keyword>      
+      <keyword>Typography</keyword>
 
     </context>
 
diff --git a/data/language-specs/m4.lang b/data/language-specs/m4.lang
index 3faed2f..d6accf0 100644
--- a/data/language-specs/m4.lang
+++ b/data/language-specs/m4.lang
@@ -68,7 +68,7 @@
   Note that keeping track of the number of arguments to a macro also allows us
   to highlight any extra arguments as errors. Also, note that calling a macro
   with _fewer_ arguments is allowed, and in fact happens all the time. For
-  example, in AC_CHECK_FILE above, the second and third arguments are optional 
+  example, in AC_CHECK_FILE above, the second and third arguments are optional
   and in fact have sensible defaults.
 
   Below, we define regexes, with names like 'macros-mss' that match every macro
@@ -665,7 +665,7 @@
 
     <!-- The func- contexts are the ones actually included in the 'm4-pure'
     context below. They match the macro names (which we defined in the regexes
-    above), and the opening and closing parentheses, which are all highlighted. 
+    above), and the opening and closing parentheses, which are all highlighted.
     -->
 
     <context id="func-m">
diff --git a/data/language-specs/mediawiki.lang b/data/language-specs/mediawiki.lang
index 52759e2..dec526f 100644
--- a/data/language-specs/mediawiki.lang
+++ b/data/language-specs/mediawiki.lang
@@ -241,7 +241,7 @@
       <keyword>SUBJECTSPACEE</keyword>
       <keyword>TALKSPACEE</keyword>
     </context>
-    
+
     <context id="table">
       <start>^\s*({\|)</start>
       <end>^\s*(\|})</end>
diff --git a/data/language-specs/modelica.lang b/data/language-specs/modelica.lang
index c622f2e..39e7fd6 100644
--- a/data/language-specs/modelica.lang
+++ b/data/language-specs/modelica.lang
@@ -80,7 +80,7 @@
       <keyword>record</keyword>
       <keyword>type</keyword>
     </context>
- 
+
     <context id="data-type" style-ref="data-type">
       <keyword>Boolean</keyword>
       <keyword>enumeration</keyword>
diff --git a/data/language-specs/nemerle.lang b/data/language-specs/nemerle.lang
index acf5a78..f3ed8fe 100644
--- a/data/language-specs/nemerle.lang
+++ b/data/language-specs/nemerle.lang
@@ -120,13 +120,13 @@
       <keyword>catch</keyword>
       <keyword>class</keyword>
       <keyword>def</keyword>
-      <keyword>do</keyword> 
+      <keyword>do</keyword>
       <keyword>else</keyword>
       <keyword>extends</keyword>
       <keyword>extern</keyword>
       <keyword>finally</keyword>
       <keyword>foreach</keyword>
-      <keyword>for</keyword> 
+      <keyword>for</keyword>
       <keyword>fun</keyword>
       <keyword>if</keyword>
       <keyword>implements</keyword>
diff --git a/data/language-specs/ocl.lang b/data/language-specs/ocl.lang
index 0e38920..cb5a970 100644
--- a/data/language-specs/ocl.lang
+++ b/data/language-specs/ocl.lang
@@ -67,9 +67,9 @@
 
                 <!-- Keywords -->
                 <context id="keywords" style-ref="keyword">
-                    <!-- 
-                    UML OCL2 Specification Page 29 and some other 
-                    that aren't "defined" as keywords 
+                    <!--
+                    UML OCL2 Specification Page 29 and some other
+                    that aren't "defined" as keywords
                     -->
                     <keyword>and</keyword>
                     <keyword>attr</keyword>
diff --git a/data/language-specs/ooc.lang b/data/language-specs/ooc.lang
index f212e41..33db1ff 100644
--- a/data/language-specs/ooc.lang
+++ b/data/language-specs/ooc.lang
@@ -110,7 +110,7 @@
       <keyword>Int64</keyword>
       <keyword>Int80</keyword>
       <keyword>Int128</keyword>
-    
+
       <keyword>UInt</keyword>
       <keyword>UInt8</keyword>
       <keyword>UInt16</keyword>
@@ -118,7 +118,7 @@
       <keyword>UInt64</keyword>
       <keyword>UInt80</keyword>
       <keyword>UInt128</keyword>
-    
+
       <keyword>Octet</keyword>
       <keyword>Short</keyword>
       <keyword>UShort</keyword>
@@ -126,20 +126,20 @@
       <keyword>ULong</keyword>
       <keyword>LLong</keyword>
       <keyword>ULLong</keyword>
-    
+
       <keyword>Float</keyword>
       <keyword>Double</keyword>
       <keyword>LDouble</keyword>
       <keyword>Float32</keyword>
       <keyword>Float64</keyword>
       <keyword>Float128</keyword>
-      
+
       <keyword>Char</keyword>
       <keyword>UChar</keyword>
       <keyword>SChar</keyword>
       <keyword>WChar</keyword>
       <keyword>String</keyword>
-     
+
       <keyword>Void</keyword>
       <keyword>Pointer</keyword>
       <keyword>Bool</keyword>
diff --git a/data/language-specs/prolog.lang b/data/language-specs/prolog.lang
index 67de3fb..70395e7 100644
--- a/data/language-specs/prolog.lang
+++ b/data/language-specs/prolog.lang
@@ -41,7 +41,7 @@
   </styles>
 
   <definitions>
-    
+
     <define-regex id="symbolchar">[-!+\\|=:&amp;&gt;&lt;]</define-regex>
 
     <define-regex id="escaped-character" extended="true">
@@ -66,7 +66,7 @@
         <context ref="def:in-comment"/>
       </include>
     </context>
-    
+
     <context id="close-comment-outside-comment" style-ref="error">
       <match>\*/(?!\*)</match>
     </context>
@@ -74,7 +74,7 @@
     <context id="variable" style-ref="variable">
       <match>\b(_|[A-Z][A-Za-z0-9_]*)\b</match>
     </context>
-    
+
     <context id="operators" style-ref="operator">
       <prefix>(?&lt;!\%{symbolchar})</prefix>
       <suffix>(?!\%{symbolchar})</suffix>
@@ -91,7 +91,7 @@
       <keyword>\\==</keyword>
       <keyword>\\\+</keyword>
     </context>
-    
+
     <context id="special-operators" style-ref="operator">
       <match>([!;]|:\-)</match>
     </context>
diff --git a/data/language-specs/scala.lang b/data/language-specs/scala.lang
index 22ea58e..a40a383 100644
--- a/data/language-specs/scala.lang
+++ b/data/language-specs/scala.lang
@@ -76,7 +76,7 @@
     <context id="operators" style-ref="operator" extend-parent="false">
       <match>[-.~^@,;:/%|\=\+\*\!\?&amp;&lt;&gt;()_\[\]]</match>
     </context>
-      
+
     <context id="character" style-ref="special">
       <match>'(\%{escaped-character}|.)'</match>
     </context>
@@ -84,7 +84,7 @@
     <context id="character-error" style-ref="error">
       <match>'(\%{escaped-character}|.)[^\s]+'</match>
     </context>
-    
+
     <context id="symbol" style-ref="special">
       <match>'[a-zA-Z_][a-zA-Z0-9_]*</match>
     </context>
@@ -103,7 +103,7 @@
         
(\b([0-9]+|0[xX][0-9a-fA-F]+)[Ll]?\b|\b(([0-9]+[Ee][-]?[0-9]+|([0-9]*\.[0-9]+|[0-9]+\.)([Ee][-]?[0-9]+)?)[fFdD]?|[0-9]+[FfDd]))
       </match>
     </context>
-    
+
     <context id="annotation">
       <match>(^\s*|[^a-zA-Z0-9_\s]\s*)(@[a-zA-Z][a-zA-Z0-9_]*)</match>
       <include>
@@ -345,7 +345,7 @@
       <keyword>super</keyword>
       <keyword>this</keyword>
     </context>
-    
+
     <context id="special" style-ref="special">
       <keyword>true</keyword>
       <keyword>false</keyword>
diff --git a/data/language-specs/vbnet.lang b/data/language-specs/vbnet.lang
index dbdca39..1199be4 100644
--- a/data/language-specs/vbnet.lang
+++ b/data/language-specs/vbnet.lang
@@ -83,9 +83,9 @@
       <keyword>async</keyword>
       <keyword>auto</keyword>
       <keyword>await</keyword>
-      <keyword>binary</keyword>        
+      <keyword>binary</keyword>
       <keyword>byref</keyword>
-      <keyword>byval</keyword> 
+      <keyword>byval</keyword>
       <keyword>call</keyword>
       <keyword>case</keyword>
       <keyword>catch</keyword>
@@ -119,7 +119,7 @@
       <keyword>error</keyword>
       <keyword>event</keyword>
       <keyword>exit</keyword>
-      <keyword>explicit</keyword>      
+      <keyword>explicit</keyword>
       <keyword>finally</keyword>
       <keyword>for</keyword>
       <keyword>friend</keyword>
diff --git a/data/language-specs/yaml.lang b/data/language-specs/yaml.lang
index f5bee5c..2246702 100644
--- a/data/language-specs/yaml.lang
+++ b/data/language-specs/yaml.lang
@@ -1,20 +1,20 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- vim: tabstop=2 shiftwidth=2 
+<!-- vim: tabstop=2 shiftwidth=2
 
   yaml.lang basic syntax highlighting of YAML for GtkSourceView
-  
+
   Copyright (C) 2013 Masood Behabadi <masood dentcat com>
 
   This program is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
   License as published by the Free Software Foundation; either
   version 2.1 of the License, or (at your option) any later version.
-  
+
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Lesser General Public License for more details.
-  
+
   You should have received a copy of the GNU Lesser General Public License
   along with this library; if not, see <http://www.gnu.org/licenses/>.
 -->
@@ -24,29 +24,29 @@
     <property name="globs">*.yaml;*.yml;</property>
     <property name="line-comment-start">#</property>
   </metadata>
-    
+
   <styles>
     <style id="scalar"    _name="Block literal"   map-to="def:string"/>
     <style id="comment"   _name="Comment"         map-to="def:comment"/>
     <style id="string"    _name="String"          map-to="def:string"/>
     <style id="anchor"    _name="Anchor"          map-to="def:identifier"/>
     <style id="tag"       _name="Tag"             map-to="def:preprocessor"/>
-    <style id="alias"     _name="Alias"           map-to="def:type"/>        
+    <style id="alias"     _name="Alias"           map-to="def:type"/>
     <style id="map-key"   _name="Map key"         map-to="def:keyword"/>
     <style id="directive" _name="Directive"       map-to="def:shebang"/>
     <style id="null"      _name="Null"            map-to="def:special-constant"/>
-    <style id="bool"      _name="Boolean"         map-to="def:boolean"/> 
+    <style id="bool"      _name="Boolean"         map-to="def:boolean"/>
     <style id="int"       _name="Integer"         map-to="def:decimal"/>
-    <style id="float"     _name="Floating point"  map-to="def:floating-point"/>        
+    <style id="float"     _name="Floating point"  map-to="def:floating-point"/>
   </styles>
-  
+
   <definitions>
-  
+
     <define-regex id="ischar">[^-\?:,\[\]\{\}#&amp;*!|&gt;'"%@\s]</define-regex>
 
     <define-regex id="lschar">[\s\[\{,]</define-regex>
     <define-regex id="rschar">[\s\]\},]</define-regex>
-        
+
     <context id="scalar" class-disabled="no-spell-check">
       <start>(?&lt;=^|\s)[|&gt;]$</start>
       <include>
@@ -59,11 +59,11 @@
         </context>
       </include>
     </context>
-    
+
     <context id="alias" style-ref="alias">
       <match>(?&lt;=^|\s)\*\%{ischar}+(?=$|\s)</match>
     </context>
-    
+
     <context id="tag" style-ref="tag">
       <match>(?&lt;=^|\s)!(?:\%{ischar}*)?!?\%{ischar}+(?=$|\s)</match>
     </context>
@@ -71,42 +71,42 @@
     <context id="anchor" style-ref="anchor">
       <match>(?&lt;=^|\s)&amp;\%{ischar}+(?=$|\s)</match>
     </context>
-    
+
     <context id="string" end-at-line-end="true" style-ref="string" class-disabled="no-spell-check">
       <start>(?&lt;=^|\%{lschar})(?'q'["'])</start>
       <end>[^\\]\%{q@start}</end>
     </context>
-    
+
     <context id="unquoted-string" end-at-line-end="true" style-ref="string" class-disabled="no-spell-check">
       <start>(?=\%{ischar}|[:-\?\]\}]\S)</start>
       <end>(?=:\s|:$|\s#)</end>
     </context>
-    
+
     <context id="inline-unquoted" end-at-line-end="true" style-ref="string" class-disabled="no-spell-check">
       <start>(?=\%{ischar}|-\S)</start>
       <end>(?=[:,?\[\{\]\}]|\s#)</end>
     </context>
-    
+
     <context id="null" style-ref="null">
       <match>(?:null)(?=\s*$|\s+#)</match>
-    </context>    
-    
+    </context>
+
     <context id="inline-null" style-ref="null">
       <match>(?:null)(?=\s*[:,?\[\{\]\}]|\s+#)</match>
     </context>
 
     <context id="bool" style-ref="bool">
       <match>(?:true|false)(?=\s*$|\s+#)</match>
-    </context>    
-    
+    </context>
+
     <context id="inline-bool" style-ref="bool">
       <match>(?:true|false)(?=\s*[:,?\[\{\]\}]|\s+#)</match>
     </context>
-    
+
     <context id="inline-int" style-ref="int">
       <match>-?(?:0|[1-9][0-9]*)(?=\s*[:,?\[\{\]\}]|\s+#)</match>
     </context>
-        
+
     <context id="int" style-ref="int">
       <match>-?(?:0|[1-9][0-9]*)(?=\s*$|\s+#)</match>
     </context>
@@ -114,15 +114,15 @@
     <context id="inline-float" style-ref="float">
       <match>-?(?:0|[1-9][0-9]*)(?:[.][0-9]*)?(?:[eE][-+]?[0-9]+)?(?=\s*[:,?\[\{\]\}]|\s+#)</match>
     </context>
-        
+
     <context id="float" style-ref="float">
       <match>-?(?:0|[1-9][0-9]*)(?:[.][0-9]*)?(?:[eE][-+]?[0-9]+)?(?=\s*$|\s+#)</match>
     </context>
-    
+
     <context id="comment" style-ref="comment">
       <match>(?&lt;=^|\s)#.*$</match>
     </context>
-    
+
     <context id="inline-sequence">
       <start>(?&lt;=^|\s)\[</start>
       <include>
@@ -131,20 +131,20 @@
         <context ref="inline-map"/>
         <context ref="comment"/>
         <context ref="alias"/>
-        <context ref="tag"/>                
+        <context ref="tag"/>
         <context ref="anchor"/>
-        <context ref="string"/>        
-        <context ref="inline-null"/>         
-        <context ref="inline-bool"/>         
+        <context ref="string"/>
+        <context ref="inline-null"/>
+        <context ref="inline-bool"/>
         <context ref="inline-int"/>
-        <context ref="inline-float"/>                        
-        <context ref="inline-unquoted"/>        
+        <context ref="inline-float"/>
+        <context ref="inline-unquoted"/>
         <context end-parent="true">
           <match>\]</match>
         </context>
       </include>
     </context>
-    
+
     <context id="inline-map">
       <start>(?&lt;=^|\s)\{</start>
       <include>
@@ -153,43 +153,43 @@
         <context ref="inline-map"/>
         <context ref="comment"/>
         <context ref="alias"/>
-        <context ref="tag"/>                
+        <context ref="tag"/>
         <context ref="anchor"/>
-        <context ref="string"/>        
-        <context ref="inline-null"/> 
-        <context ref="inline-bool"/>                         
+        <context ref="string"/>
+        <context ref="inline-null"/>
+        <context ref="inline-bool"/>
         <context ref="inline-int"/>
-        <context ref="inline-float"/>                        
-        <context ref="inline-unquoted"/>        
+        <context ref="inline-float"/>
+        <context ref="inline-unquoted"/>
         <context end-parent="true">
           <match>\}</match>
         </context>
       </include>
     </context>
-    
+
     <context id="map">
       <match>(?&lt;=^|\s)((?:[^:]|:(?=\S))+)(?::\s+|:$)</match>
       <include>
         <context sub-pattern="1" style-ref="map-key"/>
       </include>
     </context>
-    
+
     <context id="sequence">
       <match>^\s*-\s+</match>
     </context>
-    
+
     <context id="document" style-ref="comment">
       <match>^(?:-{3}|[.]{3})(?:\s+|$)</match>
     </context>
-    
+
     <context id="directive" style-ref="directive">
       <match>^%\%{ischar}(?:\%{ischar}|\s+)*</match>
     </context>
-        
+
     <context id="yaml" class="no-spell-check">
       <include>
         <context ref="directive"/>
-        <context ref="document"/>        
+        <context ref="document"/>
         <context ref="scalar"/>
         <context ref="sequence"/>
         <context ref="inline-sequence"/>
@@ -208,6 +208,6 @@
       </include>
     </context>
 
-  </definitions>  
+  </definitions>
 
 </language>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]