gtksourceview r1992 - in trunk: . gtksourceview/language-specs



Author: muntyan
Date: Sun Aug  3 05:35:05 2008
New Revision: 1992
URL: http://svn.gnome.org/viewvc/gtksourceview?rev=1992&view=rev

Log:
2008-08-02  Yevgen Muntyan  <muntyan tamu edu>

	* gtksourceview/language-specs/php.lang: added 'identifier'
	context, bug #497376.



Modified:
   trunk/ChangeLog
   trunk/gtksourceview/language-specs/php.lang

Modified: trunk/gtksourceview/language-specs/php.lang
==============================================================================
--- trunk/gtksourceview/language-specs/php.lang	(original)
+++ trunk/gtksourceview/language-specs/php.lang	Sun Aug  3 05:35:05 2008
@@ -37,6 +37,7 @@
     <style id="comment" _name="Comment" map-to="def:comment"/>
     <style id="error" _name="Error" map-to="def:error"/>
     <style id="variable" _name="Variable" map-to="def:identifier"/>
+    <style id="identifier" _name="Identifier"/> <!-- map to nothing -->
     <style id="escape" _name="Escaped Character" map-to="def:special-char"/>
     <style id="string" _name="String" map-to="def:string"/>
     <style id="here-doc" _name="Heredoc" map-to="def:string"/>
@@ -154,6 +155,10 @@
       </include>
     </context>
 
+    <context id="identifier" style-ref="identifier">
+      <match>[a-zA-Z_][a-zA-Z0-9_]*</match>
+    </context>
+
     <context id="keywords" style-ref="keyword">
       <keyword>abstract</keyword>
       <keyword>and</keyword>
@@ -306,6 +311,7 @@
         <context ref="decimal-number"/>
         <context ref="octal-number"/>
         <context ref="hexadecimal-number"/>
+	<context ref="identifier"/>
       </include>
     </context>
 



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