🎨 Add support for Gwion (#659)

This commit is contained in:
Jérémie Astor 2020-11-19 14:41:11 +01:00 committed by GitHub
parent 62b5e1ed4a
commit feb0631414
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 0 deletions

View File

@ -371,6 +371,7 @@ Glsl
Go
Graphql
Groovy
Gwion
Hamlet
Handlebars
Happy

View File

@ -492,6 +492,11 @@
"quotes": [["\\\"", "\\\""]],
"extensions": ["groovy", "grt", "gtpl", "gvy"]
},
"Gwion": {
"line_comment": ["#!"],
"quotes": [["\\\"", "\\\""]],
"extensions": ["gw"]
},
"Happy": {
"extensions": ["y", "ly"]
},

10
tests/data/gwion.gw Normal file
View File

@ -0,0 +1,10 @@
#! 10 lines 8 code 1 comments 1 blanks
class C {
var int i;
var float f;
var Object o;
operator void @dtor () { <<< "dtor" >>>; }
}
var C c;
<<< c >>>;