[gtksourceview] ref comment and error on comments contexts to def and removed respective styles



commit 9fc5cba523a79f7f544c8372059615286f31b862
Author: Carnë Draug <carandraug+dev gmail com>
Date:   Wed May 25 13:09:52 2011 +0100

    ref comment and error on comments contexts to def and removed respective styles

 data/language-specs/javascript.lang |   26 +++-----------------------
 1 files changed, 3 insertions(+), 23 deletions(-)
---
diff --git a/data/language-specs/javascript.lang b/data/language-specs/javascript.lang
index 5bbc738..e0062b1 100644
--- a/data/language-specs/javascript.lang
+++ b/data/language-specs/javascript.lang
@@ -34,8 +34,6 @@
     </metadata>
 
     <styles>
-        <style id="comment"         _name="Comment"                  map-to="def:comment"/>
-        <style id="error"           _name="Error"                    map-to="def:error"/>
         <style id="string"          _name="String"                   map-to="def:string"/>
         <style id="null-value"      _name="Null Value"               map-to="def:special-constant"/>
         <style id="undefined-value" _name="Undefined Value"          map-to="def:special-constant"/>
@@ -52,28 +50,10 @@
     <definitions>
         <context id="js" class="no-spell-check">
             <include>
-
                 <!-- Comments -->
-                <context id="line-comment" style-ref="comment" class="comment" class-disabled="no-spell-check">
-                    <start>//</start>
-                    <end>$</end>
-                    <include>
-                        <context ref="def:line-continue"/>
-                        <context ref="def:in-comment"/>
-                    </include>
-                </context>
-
-                <context id="block-comment" style-ref="comment" class="comment" class-disabled="no-spell-check">
-                    <start>/\*</start>
-                    <end>\*/</end>
-                    <include>
-                        <context ref="def:in-comment"/>
-                    </include>
-                </context>
-
-                <context id="close-comment-outside-comment" style-ref="error">
-                    <match>\*/(?!\*)</match>
-                </context>
+                <context ref="def:c-like-comment"/>
+                <context ref="def:c-like-comment-multiline"/>
+                <context ref="def:c-like-close-comment-outside-comment"/>
 
                 <!-- Strings -->
                 <context id="string-double" end-at-line-end="true" style-ref="string" class="string" class-disabled="no-spell-check">



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