[gtksourceview/gnome-3-24] language-specs: remove trailing spaces
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/gnome-3-24] language-specs: remove trailing spaces
- Date: Wed, 6 Sep 2017 14:28:09 +0000 (UTC)
commit 90828e91d1c80bd81ca8a21bfa327dd2ae634a68
Author: Sébastien Wilmet <swilmet gnome org>
Date: Wed Sep 6 16:25:40 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/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 ++++++++++++++++++------------------
17 files changed, 116 insertions(+), 116 deletions(-)
---
diff --git a/data/language-specs/awk.lang b/data/language-specs/awk.lang
index f77f958..0ff37e5 100644
--- a/data/language-specs/awk.lang
+++ b/data/language-specs/awk.lang
@@ -89,7 +89,7 @@
<keyword>RLENGTH</keyword>
<keyword>TEXTDOMAIN</keyword>
</context>
-
+
<context id="built-in-functions" style-ref="builtin-function">
<keyword>gsub</keyword>
<keyword>index</keyword>
@@ -102,7 +102,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 d58ac2b..9a2ce3b 100644
--- a/data/language-specs/bibtex.lang
+++ b/data/language-specs/bibtex.lang
@@ -35,7 +35,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 14419b5..a2d0359 100644
--- a/data/language-specs/cg.lang
+++ b/data/language-specs/cg.lang
@@ -177,7 +177,7 @@
<keyword>POSITION</keyword>
<keyword>NORMAL</keyword>
</context>
-
+
<context id="color-bindings" style-ref="bindings">
<match extended="true">COLOR[0-3]?</match>
</context>
@@ -185,24 +185,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|
@@ -217,7 +217,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 feaafb1..4dec05e 100644
--- a/data/language-specs/eiffel.lang
+++ b/data/language-specs/eiffel.lang
@@ -55,13 +55,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>
@@ -73,8 +73,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 8fbc65b..de6ea05 100644
--- a/data/language-specs/fsharp.lang
+++ b/data/language-specs/fsharp.lang
@@ -51,25 +51,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">[!#$%&*+./>=<?@:\\^|~-]</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>
@@ -78,7 +78,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>
@@ -94,7 +94,7 @@
<context ref="def:in-comment"/>
</include>
</context>
-
+
<context id="preprocessor" style-ref="preprocessor" end-at-line-end="true">
<start extended="true">
\%{preproc-start}
@@ -107,23 +107,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>
@@ -139,19 +139,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>
@@ -159,20 +159,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">
(?<![\w\.])
@@ -180,12 +180,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>(?<!\%{symbolchar})</prefix>
<suffix>(?!\%{symbolchar})</suffix>
@@ -203,7 +203,7 @@
<keyword>&&</keyword>
<keyword>&</keyword>
</context>
-
+
<context id="keywords" style-ref="keyword">
<keyword>abstract</keyword>
<keyword>and</keyword>
@@ -308,9 +308,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 8a0ce2a..2cd0463 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
@@ -57,7 +57,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>
@@ -83,7 +83,7 @@
<context id="verb" style-ref="verb">
<match extended="true">
((_?[0-9]:)|
- (\%[p\.\.)|
+ (\%[p\.\.)|
(\%[[AcCeEiIjLopr]\.)|
(\%[[ipqsux]:)|
({::)|
@@ -97,7 +97,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 21b4359..3ced1bb 100644
--- a/data/language-specs/julia.lang
+++ b/data/language-specs/julia.lang
@@ -218,8 +218,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/m4.lang b/data/language-specs/m4.lang
index 1ec8a2e..7188aad 100644
--- a/data/language-specs/m4.lang
+++ b/data/language-specs/m4.lang
@@ -69,7 +69,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
@@ -666,7 +666,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 013703f..e6d339d 100644
--- a/data/language-specs/mediawiki.lang
+++ b/data/language-specs/mediawiki.lang
@@ -242,7 +242,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 d8682a8..ebe5ed0 100644
--- a/data/language-specs/modelica.lang
+++ b/data/language-specs/modelica.lang
@@ -81,7 +81,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 660084e..0332c4d 100644
--- a/data/language-specs/nemerle.lang
+++ b/data/language-specs/nemerle.lang
@@ -121,13 +121,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 8deeb9a..97453db 100644
--- a/data/language-specs/ocl.lang
+++ b/data/language-specs/ocl.lang
@@ -68,9 +68,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 58f5946..1d35711 100644
--- a/data/language-specs/ooc.lang
+++ b/data/language-specs/ooc.lang
@@ -111,7 +111,7 @@
<keyword>Int64</keyword>
<keyword>Int80</keyword>
<keyword>Int128</keyword>
-
+
<keyword>UInt</keyword>
<keyword>UInt8</keyword>
<keyword>UInt16</keyword>
@@ -119,7 +119,7 @@
<keyword>UInt64</keyword>
<keyword>UInt80</keyword>
<keyword>UInt128</keyword>
-
+
<keyword>Octet</keyword>
<keyword>Short</keyword>
<keyword>UShort</keyword>
@@ -127,20 +127,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 71311f6..50490a4 100644
--- a/data/language-specs/prolog.lang
+++ b/data/language-specs/prolog.lang
@@ -42,7 +42,7 @@
</styles>
<definitions>
-
+
<define-regex id="symbolchar">[-!+\\|=:&><]</define-regex>
<define-regex id="escaped-character" extended="true">
@@ -67,7 +67,7 @@
<context ref="def:in-comment"/>
</include>
</context>
-
+
<context id="close-comment-outside-comment" style-ref="error">
<match>\*/(?!\*)</match>
</context>
@@ -75,7 +75,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>(?<!\%{symbolchar})</prefix>
<suffix>(?!\%{symbolchar})</suffix>
@@ -92,7 +92,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 949713e..953afb9 100644
--- a/data/language-specs/scala.lang
+++ b/data/language-specs/scala.lang
@@ -77,7 +77,7 @@
<context id="operators" style-ref="operator" extend-parent="false">
<match>[-.~^@,;:/%|\=\+\*\!\?&<>()_\[\]]</match>
</context>
-
+
<context id="character" style-ref="special">
<match>'(\%{escaped-character}|.)'</match>
</context>
@@ -85,7 +85,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>
@@ -104,7 +104,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>
@@ -346,7 +346,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 4ed0fec..a53f137 100644
--- a/data/language-specs/vbnet.lang
+++ b/data/language-specs/vbnet.lang
@@ -84,9 +84,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>
@@ -120,7 +120,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 675e92d..fa91949 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, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
@@ -25,29 +25,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">[^-\?:,\[\]\{\}#&*!|>'"%@\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>(?<=^|\s)[|>]$</start>
<include>
@@ -60,11 +60,11 @@
</context>
</include>
</context>
-
+
<context id="alias" style-ref="alias">
<match>(?<=^|\s)\*\%{ischar}+(?=$|\s)</match>
</context>
-
+
<context id="tag" style-ref="tag">
<match>(?<=^|\s)!(?:\%{ischar}*)?!?\%{ischar}+(?=$|\s)</match>
</context>
@@ -72,42 +72,42 @@
<context id="anchor" style-ref="anchor">
<match>(?<=^|\s)&\%{ischar}+(?=$|\s)</match>
</context>
-
+
<context id="string" end-at-line-end="true" style-ref="string" class-disabled="no-spell-check">
<start>(?<=^|\%{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>
@@ -115,15 +115,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>(?<=^|\s)#.*$</match>
</context>
-
+
<context id="inline-sequence">
<start>(?<=^|\s)\[</start>
<include>
@@ -132,20 +132,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>(?<=^|\s)\{</start>
<include>
@@ -154,43 +154,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>(?<=^|\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"/>
@@ -209,6 +209,6 @@
</include>
</context>
- </definitions>
+ </definitions>
</language>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]