[code][textadept] add `get` and `set` keywords to javascript lexer

From: Heck Fy <shitpoet.att.gmail.com>
Date: Fri, 13 Jan 2017 01:46:51 +0300

hi!

in modern javascript there are `get` and `set` keywords (used to
define properties).

```
diff --git a/lexers/javascript.lua b/lexers/javascript.lua
index f879948..fc4dc3b 100644
--- a/lexers/javascript.lua
+++ b/lexers/javascript.lua
@@ -32,9 +32,9 @@ local keyword = token(l.KEYWORD, word_match{
   'abstract', 'boolean', 'break', 'byte', 'case', 'catch', 'char', 'class',
   'const', 'continue', 'debugger', 'default', 'delete', 'do', 'double', 'else',
   'enum', 'export', 'extends', 'false', 'final', 'finally', 'float', 'for',
- 'function', 'goto', 'if', 'implements', 'import', 'in', 'instanceof', 'int',
- 'interface', 'let', 'long', 'native', 'new', 'null', 'of', 'package',
- 'private', 'protected', 'public', 'return', 'short', 'static', 'super',
+ 'function', 'get', 'goto', 'if', 'implements', 'import', 'in', 'instanceof',
+ 'int', 'interface', 'let', 'long', 'native', 'new', 'null', 'of', 'package',
+ 'private', 'protected', 'public', 'return', 'set', 'short',
'static', 'super',
   'switch', 'synchronized', 'this', 'throw', 'throws', 'transient', 'true',
   'try', 'typeof', 'var', 'void', 'volatile', 'while', 'with', 'yield'
 })
```

decsription of these keywords can be viewed at MDN:
`get` keyword:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/get
`set` keyword:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/set

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Thu 12 Jan 2017 - 17:46:51 EST

This archive was generated by hypermail 2.2.0 : Fri 13 Jan 2017 - 06:41:35 EST