gtksourceview r2103 - in trunk: . gtksourceview/language-specs
- From: icq svn gnome org
- To: svn-commits-list gnome org
- Subject: gtksourceview r2103 - in trunk: . gtksourceview/language-specs
- Date: Fri, 12 Dec 2008 13:57:34 +0000 (UTC)
Author: icq
Date: Fri Dec 12 13:57:34 2008
New Revision: 2103
URL: http://svn.gnome.org/viewvc/gtksourceview?rev=2103&view=rev
Log:
2008-12-12 Ignacio Casal Quinteiro <nacho resa gmail com>
* gtksourceview/language-specs/awk.lang:
Add builtin functions to awk lang file. Fixes bug #564242.
Modified:
trunk/ChangeLog
trunk/gtksourceview/language-specs/awk.lang
Modified: trunk/gtksourceview/language-specs/awk.lang
==============================================================================
--- trunk/gtksourceview/language-specs/awk.lang (original)
+++ trunk/gtksourceview/language-specs/awk.lang Fri Dec 12 13:57:34 2008
@@ -31,6 +31,7 @@
<style id="keyword" _name="Keyword" map-to="def:keyword"/>
<style id="pattern" _name="Pattern" map-to="def:preprocessor"/>
<style id="variable" _name="Variable" map-to="def:identifier"/>
+ <style id="builtin-function" _name="Builtin Function" map-to="def:builtin"/>
</styles>
<definitions>
@@ -87,6 +88,31 @@
<keyword>RLENGTH</keyword>
<keyword>TEXTDOMAIN</keyword>
</context>
+
+ <context id="built-in-functions" style-ref="builtin-function">
+ <keyword>gsub</keyword>
+ <keyword>index</keyword>
+ <keyword>length</keyword>
+ <keyword>match</keyword>
+ <keyword>split</keyword>
+ <keyword>sprintf</keyword>
+ <keyword>sub</keyword>
+ <keyword>substr</keyword>
+ <keyword>tolower</keyword>
+ <keyword>toupper</keyword>
+ </context>
+
+ <context id="arithmetic-functions" style-ref="builtin-function">
+ <keyword>atan2</keyword>
+ <keyword>cos</keyword>
+ <keyword>exp</keyword>
+ <keyword>int</keyword>
+ <keyword>log</keyword>
+ <keyword>rand</keyword>
+ <keyword>sin</keyword>
+ <keyword>sqrt</keyword>
+ <keyword>srand</keyword>
+ </context>
<context id="field-variable" style-ref="variable">
<match>\$\d+</match>
@@ -101,6 +127,8 @@
<context ref="patterns"/>
<context ref="variables"/>
<context ref="field-variable"/>
+ <context ref="built-in-functions"/>
+ <context ref="arithmetic-functions"/>
</include>
</context>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]