[gedit-list] GLSL syntax highlighting and Java syntax highlighting patch



Hello all

I've created a syntax highlighting definition for OpenGL Shading Language (GLSL), attached as glsl.lang .

I've also changed Java syntax highlighting to better match C++ and C#, attached as java.lang.diff .

cheers
Markus


--- /usr/share/gtksourceview-2.0/language-specs/java.lang	2007-09-17 22:59:07.000000000 +0200
+++ java.lang	2007-10-17 08:54:58.000000000 +0200
@@ -35,9 +35,9 @@
     <style id="error" _name="Error" map-to="def:error"/>
     <style id="string" _name="String" map-to="def:string"/>
     <style id="external" _name="External" map-to="def:preprocessor"/>
-    <style id="declaration" _name="Declaration" map-to="def:type"/>
-    <style id="storage-class" _name="Storage Class" map-to="def:type"/>
-    <style id="scope-declaration" _name="Scope Declaration" map-to="def:type"/>
+    <style id="declaration" _name="Declaration" map-to="def:keyword"/>
+    <style id="storage-class" _name="Storage Class" map-to="def:keyword"/>
+    <style id="scope-declaration" _name="Scope Declaration" map-to="def:keyword"/>
     <style id="keyword" _name="Keyword" map-to="def:keyword"/>
     <style id="null-value" _name="Null Value" map-to="def:special-constant"/>
     <style id="boolean" _name="Boolean value" map-to="def:boolean"/>

Attachment: glsl.lang
Description: Binary data



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