Commit Graph

218 Commits

Author SHA1 Message Date
Andrea Crotti 227845c8b9
move script to the right place 2017-10-01 12:25:27 +01:00
Davidbrcz 7534870632 Update cc-mode/main (#222)
The current cc-mode/main  snippet does not compile out of the box with gcc or g++.
I reverted it to a more standard code which does not use variable length array with its arguments
2017-09-27 13:09:05 +01:00
ybiquitous 76e5443738 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
2017-09-27 13:07:36 +01:00
Andrea Crotti bcbdc760f8
fixes #223 2017-09-26 18:24:39 +01:00
ybiquitous 70903229b4 add snippets about ES2015 module syntax (import, export) (#219)
* add snippets about ES2015 module syntax (import, export)

For details, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import

* follow exact 'import' syntax

* add 'group: es6'
2017-09-20 20:34:01 +01:00
ybiquitous 728a66d6c3 rewrite 'class' and 'constructor' for ES2015 syntax in js-mode (#218)
* rewrite 'class' and 'constructor' for ES2015 syntax in js-mode

* fine tuning

* fine tuning

* add new snippets 'class-es6' and 'init-es6' for backward compatibility
2017-09-20 20:33:21 +01:00
USAMI Kenta 1cb40233f8 Add snippets for php-mode (#205)
* Add snippets for php-mode

* Fix typo
2017-09-20 19:05:01 +01:00
ybiquitous 643d6a0e10 add "switch" snippet to js-mode (#217)
Inspired by other language modes (go, cc, php, etc.).
2017-09-15 16:57:11 +01:00
ybiquitous 00e4e12922 insert space between "for" keyword and "(" (#215)
* insert space between "for" keyword and "("

In order to follow the standard JavaScript coding style.

* trim final newline
2017-09-14 11:04:34 +01:00
ybiquitous 886befad0e use "forEach" instead of "each" (#216)
"forEach" is standard API, but "each" is non-standard.

See below:

- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach
- https://developer.mozilla.org/en-US/docs/Web/API/NodeList/forEach
2017-09-14 09:24:11 +01:00
Thibault 5c3bb7ad8f Fix path for csharp-mode/main (#212) 2017-09-08 12:35:24 +01:00
Avelino e62b18c771 create python snippet bang #! (#213) 2017-09-08 12:34:01 +01:00
振宗 e3739ecc73 Update metaclass (#210) 2017-09-03 16:50:10 +01:00
Sergey Timanin 5eeac454aa Correct terraform 'resource' snippet (#207)
Type definition was missing. As the official Terraform documentation states:

> The resource block defines a resource that exists within the infrastructure. A resource might be a physical component such as an EC2 instance, or it can be a logical resource such as a Heroku application.

From: https://www.terraform.io/intro/getting-started/build.html#configuration
2017-08-22 21:56:01 +01:00
USAMI Kenta 98a784a7ed Add PHP basic syntax (statement) for php-mode (#202)
* Add PHP basic syntax (statement) for php-mode

* Add php-mode/.yas-setup.el

* Replace to function (yas-php-get-class-name-by-file-name)
2017-08-21 11:01:54 +01:00
Andrea Crotti 0253a7eb57 move everything in snippets as it should be (#203) 2017-08-13 12:16:55 +01:00
sshaw d33168d770 Move Ruby mod snippet to ruby-mode 2016-01-15 23:11:43 -05:00
Jim Myhrberg 21d5f45855 Add `mod` snippet to ruby-mode for `module` definitions 2015-07-05 12:03:38 -04:00