diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2016-02-17 16:44:44 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2016-02-17 16:44:44 +0100 |
commit | b8e8cc8da49c474159f904c5c8bd2acc849c7c52 (patch) | |
tree | 2954f4d1efccae22bbcbe5f0857383c9abaa7474 /lib | |
parent | b091d8b4f34efe653b10bf681df6491ddb993527 (diff) | |
download | sciteco-b8e8cc8da49c474159f904c5c8bd2acc849c7c52.tar.gz |
added lexing support for Gob2 (GObject Builder)
* this assumes that Gob2 produces plain-C output
(no C++ keywords are added) and all Gob keywords
are real keywords - even though they might be used
in function bodies or %{ %} enclosed blocks.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Makefile.am | 1 | ||||
-rw-r--r-- | lib/lexers/gob.tes | 36 |
2 files changed, 37 insertions, 0 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am index 4cbb27c..53a9be8 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -51,6 +51,7 @@ dist_lexer_DATA = lexers/verilog.tes \ lexers/asl.tes \ lexers/c.tes \ lexers/cpp.tes \ + lexers/gob.tes \ lexers/test.tes \ lexers/kix.tes \ lexers/baan.tes \ diff --git a/lib/lexers/gob.tes b/lib/lexers/gob.tes new file mode 100644 index 0000000..e3e1e63 --- /dev/null +++ b/lib/lexers/gob.tes @@ -0,0 +1,36 @@ +!* + * GOB2 (GObject Builder) Lexing. + * Assumes plain C output. + *! + +@[lexer.test.gob]{ + :EN*.gobQ* +} + +@[lexer.set.gob]{ + ESSETLEXERLANGUAGEcpp + 0ESSETKEYWORDS + Q[lexer.c.basekeywords] _Alignas _Alignof _Atomic + _Bool _Complex _Generic _Imaginary _Noreturn _Static_assert _Thread_local + abstract attr BonoboObject check class classwide defreturn destroy destroywith + error first flags from get GladeXML interface last link null onerror override + private property protected public requires set signal type unref unrefwith virtual + alltop ctop headertop privateheader + 1ESSETKEYWORDS + __GOB_FUNCTION__ GET_NEW GET_NEW_VARG IS_SELF PARENT_HANDLER + SELF Self self selfp SELF_CLASS SelfClass SELF_CONST SELF_GET_CLASS TYPE_SELF VAR + !* GTK-Doc keywords *! + 2ESSETKEYWORDS + Deprecated image include Returns SECTION section_id see_also short_description + Since stability title : @ < > ( ) % # + :M[color.comment],1M[color.set] + :M[color.comment],2M[color.set] + :M[color.comment],3M[color.set] + :M[color.number],4M[color.set] + :M[color.keyword],5M[color.set] + :M[color.string],6M[color.set] + :M[color.string],7M[color.set] + :M[color.preproc],9M[color.set] + :M[color.operator],10M[color.set] + :M[color.keyword],16M[color.set] +} |