From 3af6c92c13017df8ac8409a03aca79bf12d868b2 Mon Sep 17 00:00:00 2001 From: Kiy4h Date: Sat, 24 Nov 2018 20:13:44 +0700 Subject: [PATCH] CoffeeScript.yaml: Add CoffeeScript language Related to https://github.com/coala/coAST/issues/57 --- data/DataType/boolean_coffeescript.yaml | 10 +++ data/Delimiter/triple_hash.yaml | 3 + data/Language/CoffeeScript.yaml | 88 +++++++++++++++++++++++++ 3 files changed, 101 insertions(+) create mode 100644 data/DataType/boolean_coffeescript.yaml create mode 100644 data/Delimiter/triple_hash.yaml create mode 100644 data/Language/CoffeeScript.yaml diff --git a/data/DataType/boolean_coffeescript.yaml b/data/DataType/boolean_coffeescript.yaml new file mode 100644 index 0000000..48dc154 --- /dev/null +++ b/data/DataType/boolean_coffeescript.yaml @@ -0,0 +1,10 @@ +name: boolean +integer-min: '0' +integer-max: '1' +literals: + - 'true' + - 'yes' + - 'on' + - 'false' + - 'no' + - 'off' diff --git a/data/Delimiter/triple_hash.yaml b/data/Delimiter/triple_hash.yaml new file mode 100644 index 0000000..505f1e2 --- /dev/null +++ b/data/Delimiter/triple_hash.yaml @@ -0,0 +1,3 @@ +type: comment +start: '###' +end: '###' diff --git a/data/Language/CoffeeScript.yaml b/data/Language/CoffeeScript.yaml new file mode 100644 index 0000000..fc296ce --- /dev/null +++ b/data/Language/CoffeeScript.yaml @@ -0,0 +1,88 @@ +identifier: CoffeeScript +wikidata: Q1106819 +aliases: + - coffee +creation_date: 20091213 +extensions: + - coffee + - litcoffee +line_continuation: + - backslash +delimiters: + # comment delimiters + - hash + - triple_hash + # string delimiters + - single_quote_slash_escape + - double_quote_slash_escape + - triple_single_quote + - triple_double_quote + - backticks + # block delimiters + - curly_braces + - round_braces + - square_braces +datatypes: + - boolean_coffeescript +keywords: + - and + - arguments + - await + - break + - by + - case + - catch + - class + - const + - continue + - debugger + - default + - defer + - delete + - do + - else + - enum + - export + - extends + - finally + - for + - function + - if + - implements + - import + - in + - Infinity + - instanceof + - interface + - is + - isnt + - let + - loop + - NaN + - native + - new + - not + - 'null' + - of + - or + - package + - private + - protected + - public + - return + - static + - super + - switch + - then + - this + - throw + - try + - typeof + - undefined + - unless + - var + - void + - when + - while + - with + - yield