add snippets for 'let' and 'const' statements (ES2015 syntax) (#225)

For details, see below links:

- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const
This commit is contained in:
ybiquitous 2017-09-27 21:07:36 +09:00 committed by Andrea Crotti
parent bcbdc760f8
commit 76e5443738
2 changed files with 12 additions and 0 deletions

6
snippets/js-mode/const Normal file
View file

@ -0,0 +1,6 @@
# -*- mode: snippet; require-final-newline: nil -*-
# name: const declaration
# key: const
# group: es6
# --
const ${1:name} = ${2:initial};

6
snippets/js-mode/let Normal file
View file

@ -0,0 +1,6 @@
# -*- mode: snippet; require-final-newline: nil -*-
# name: let declaration
# key: let
# group: es6
# --
let ${1:name} = ${2:initial};