From 7d91c94057313467983d5c4ba58a083ae2868702 Mon Sep 17 00:00:00 2001 From: Amory Meltzer Date: Mon, 15 Mar 2021 19:49:35 -0400 Subject: [PATCH 01/86] Avoid literal 0 Mostly in js-mode --- snippets/fish-mode/sw | 2 +- snippets/js-mode/fin | 2 +- snippets/js-mode/fof | 2 +- snippets/js-mode/fre | 2 +- snippets/js-mode/metb | 2 +- snippets/js-mode/pge | 2 +- snippets/js-mode/pse | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/snippets/fish-mode/sw b/snippets/fish-mode/sw index 8d23c6459..dffcbf4c4 100644 --- a/snippets/fish-mode/sw +++ b/snippets/fish-mode/sw @@ -4,5 +4,5 @@ # -- switch ${1:condition} case ${2:*} - ${0} + $0 end diff --git a/snippets/js-mode/fin b/snippets/js-mode/fin index 1c907fc24..c977bcf9c 100644 --- a/snippets/js-mode/fin +++ b/snippets/js-mode/fin @@ -6,5 +6,5 @@ # -- for(let ${1:item} in ${2:object}) { - ${0} + $0 } \ No newline at end of file diff --git a/snippets/js-mode/fof b/snippets/js-mode/fof index 7b11227ac..a0b276590 100644 --- a/snippets/js-mode/fof +++ b/snippets/js-mode/fof @@ -6,5 +6,5 @@ # -- for(let ${1:item} of ${2:object}) { - ${0} + $0 } \ No newline at end of file diff --git a/snippets/js-mode/fre b/snippets/js-mode/fre index ef909106d..7840a432b 100644 --- a/snippets/js-mode/fre +++ b/snippets/js-mode/fre @@ -6,5 +6,5 @@ # -- ${1:array}.forEach(${2:currentItem} => { - ${0} + $0 }) \ No newline at end of file diff --git a/snippets/js-mode/metb b/snippets/js-mode/metb index 78ccc4227..19b3830bb 100644 --- a/snippets/js-mode/metb +++ b/snippets/js-mode/metb @@ -6,5 +6,5 @@ # -- ${1:methodName} = (${2:params}) => { - ${0} + $0 } \ No newline at end of file diff --git a/snippets/js-mode/pge b/snippets/js-mode/pge index 0e83cde56..e663daf34 100644 --- a/snippets/js-mode/pge +++ b/snippets/js-mode/pge @@ -6,5 +6,5 @@ # -- get ${1:propertyName}() { - return this.${0} + return this.${2:propertyName} } \ No newline at end of file diff --git a/snippets/js-mode/pse b/snippets/js-mode/pse index dc3595769..0ab567be1 100644 --- a/snippets/js-mode/pse +++ b/snippets/js-mode/pse @@ -6,5 +6,5 @@ # -- set ${1:propertyName}(${2:value}) { - ${0} + $0 } \ No newline at end of file From 24a46cbfda9332cb403d2bfdc90785c5bc19ec17 Mon Sep 17 00:00:00 2001 From: Daniel Hornung Date: Wed, 23 Jun 2021 11:21:03 +0200 Subject: [PATCH 02/86] STY: Formatted python-mode/fdn to adher to PEP8 style. --- snippets/python-mode/function_docstring_numpy | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/snippets/python-mode/function_docstring_numpy b/snippets/python-mode/function_docstring_numpy index 3a7243e6b..4be347b7c 100644 --- a/snippets/python-mode/function_docstring_numpy +++ b/snippets/python-mode/function_docstring_numpy @@ -5,7 +5,8 @@ # group: definitions # -- def ${1:name}($2): - \"\"\"$3 - ${2:$(python-args-to-docstring-numpy)} - \"\"\" - $0 \ No newline at end of file + \"\"\"$3 + +${2:$(python-args-to-docstring-numpy)} + \"\"\" + $0 From 02529f802d08840ea31b5fd5cb46813349a29994 Mon Sep 17 00:00:00 2001 From: Andrea Crotti Date: Wed, 28 Jul 2021 12:11:04 +0100 Subject: [PATCH 03/86] Add .circleci/config.yml --- .circleci/config.yml | 48 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 000000000..af2b26b81 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,48 @@ +# Clojure CircleCI 2.0 configuration file +# +# Check https://circleci.com/docs/2.0/language-clojure/ for more details +# +version: 2.1 + +jobs: + build: + docker: + # specify the version you desire here + - image: circleci/clojure:lein-2.9.5 + + # Specify service dependencies here if necessary + # CircleCI maintains a library of pre-built images + # documented at https://circleci.com/docs/2.0/circleci-images/ + # - image: circleci/postgres:9.4 + + working_directory: ~/repo + + environment: + LEIN_ROOT: "true" + # Customize the JVM maximum heap limit + JVM_OPTS: -Xmx3200m + + steps: + - checkout + + # Download and cache dependencies + - restore_cache: + keys: + - v1-dependencies-{{ checksum "project.clj" }} + # fallback to using the latest cache if no exact match is found + - v1-dependencies- + + - run: lein deps + + - save_cache: + paths: + - ~/.m2 + key: v1-dependencies-{{ checksum "project.clj" }} + + # run tests! + - run: lein test + +workflows: + build: + jobs: + - build From 2490f88f536778553ea54550fb97fa168c39b6fe Mon Sep 17 00:00:00 2001 From: Andrea Crotti Date: Sun, 1 Aug 2021 21:06:06 +0100 Subject: [PATCH 04/86] actions --- .github/workflows/clojure.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/clojure.yml diff --git a/.github/workflows/clojure.yml b/.github/workflows/clojure.yml new file mode 100644 index 000000000..22bfe2039 --- /dev/null +++ b/.github/workflows/clojure.yml @@ -0,0 +1,19 @@ +name: Clojure CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Install dependencies + run: lein deps + - name: Run tests + run: lein test From 37e3b1ee7d110bb05ab36524642bbf5cb4058c0d Mon Sep 17 00:00:00 2001 From: Andrea Crotti Date: Sun, 1 Aug 2021 21:09:59 +0100 Subject: [PATCH 05/86] fix generation --- .github/workflows/clojure.yml | 6 ++---- .gitignore | 1 + report/README.md | 1 + report/project.clj | 1 + report/src/core.clj | 3 +++ 5 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 report/README.md diff --git a/.github/workflows/clojure.yml b/.github/workflows/clojure.yml index 22bfe2039..24e844b7a 100644 --- a/.github/workflows/clojure.yml +++ b/.github/workflows/clojure.yml @@ -13,7 +13,5 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Install dependencies - run: lein deps - - name: Run tests - run: lein test + - name: generate html report + run: cd report && lein run diff --git a/.gitignore b/.gitignore index 8ab45ff65..c4f081636 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ **/.yas-compiled-snippets.el +/report/target/ diff --git a/report/README.md b/report/README.md new file mode 100644 index 000000000..becc49cc4 --- /dev/null +++ b/report/README.md @@ -0,0 +1 @@ +# Report snippets diff --git a/report/project.clj b/report/project.clj index 1aa814b31..f832761fc 100644 --- a/report/project.clj +++ b/report/project.clj @@ -3,6 +3,7 @@ :dependencies [[org.clojure/clojure "1.10.0"] [hiccup "1.0.5"]] + :main core :uberjar-name "report.jar" :min-lein-version "2.8.1" :source-paths ["src"] diff --git a/report/src/core.clj b/report/src/core.clj index 1fc965c62..943b2e135 100644 --- a/report/src/core.clj +++ b/report/src/core.clj @@ -104,5 +104,8 @@ (println "Writing to " s) (spit s (str/join "\n" (cons mode-line content))))))) +(defn -main [& args] + (gen-html "../snippets")) + (comment (gen-html "../snippets")) From 7beb66815aadef417a53217a36c934c48f57477f Mon Sep 17 00:00:00 2001 From: Laura Date: Sat, 7 Aug 2021 17:16:18 -0300 Subject: [PATCH 06/86] fix: escape bracket inside snippet --- snippets/js-mode/class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/js-mode/class b/snippets/js-mode/class index ea0c565d0..276be8b3a 100644 --- a/snippets/js-mode/class +++ b/snippets/js-mode/class @@ -6,7 +6,7 @@ class ${1:Class}${2: extends ${3:ParentClass}} { ${4:constructor(${5:arg}) { ${6:super(arg);} $7 - }} + \}} $0 } \ No newline at end of file From 372e23f2700d0ba27721789a1e0f01db40b12d39 Mon Sep 17 00:00:00 2001 From: Andrea Crotti Date: Mon, 9 Aug 2021 21:08:49 +0100 Subject: [PATCH 07/86] add nongnu elpa badge --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 6332428b9..0170cf029 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # Yasnippet official snippet collections [![MELPA Stable](https://stable.melpa.org/packages/yasnippet-snippets-badge.svg)](https://stable.melpa.org/#/yasnippet-snippets) +[![NonGNU ELPA](https://elpa.nongnu.org/nongnu/yasnippet-snippets.svg)](https://elpa.nongnu.org/nongnu/yasnippet-snippets.svg) [![MELPA](https://melpa.org/packages/yasnippet-snippets-badge.svg)](https://melpa.org/#/yasnippet-snippets) [![Join the chat at https://gitter.im/AndreaCrotti/yasnippet-snippets](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/AndreaCrotti/yasnippet-snippets?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) From 239b3cc7924613c9ed203be9011555b8338ae34f Mon Sep 17 00:00:00 2001 From: Andrea Crotti Date: Mon, 9 Aug 2021 21:09:35 +0100 Subject: [PATCH 08/86] not using gitter enough --- README.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/README.md b/README.md index 0170cf029..438da6684 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,6 @@ [![NonGNU ELPA](https://elpa.nongnu.org/nongnu/yasnippet-snippets.svg)](https://elpa.nongnu.org/nongnu/yasnippet-snippets.svg) [![MELPA](https://melpa.org/packages/yasnippet-snippets-badge.svg)](https://melpa.org/#/yasnippet-snippets) -[![Join the chat at https://gitter.im/AndreaCrotti/yasnippet-snippets](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/AndreaCrotti/yasnippet-snippets?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) - - This repository contains the official collection of snippets for [yasnippet](http://github.com/capitaomorte/yasnippet). From 488f14838de6fd421d51180138a8459ad2e7b8f1 Mon Sep 17 00:00:00 2001 From: dalu Date: Fri, 13 Aug 2021 20:20:42 +0800 Subject: [PATCH 09/86] fix: remove the final newline --- snippets/cc-mode/do | 3 +-- snippets/cc-mode/file_description | 2 +- snippets/cc-mode/for | 2 +- snippets/cc-mode/for_n | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/snippets/cc-mode/do b/snippets/cc-mode/do index 3132a3176..d1bacf78a 100644 --- a/snippets/cc-mode/do +++ b/snippets/cc-mode/do @@ -2,7 +2,6 @@ # name: do { ... } while (...) # key: do # -- -do -{ +do { $0 } while (${1:condition}); \ No newline at end of file diff --git a/snippets/cc-mode/file_description b/snippets/cc-mode/file_description index 3478ebc95..af7bbbae5 100644 --- a/snippets/cc-mode/file_description +++ b/snippets/cc-mode/file_description @@ -10,4 +10,4 @@ ${3:* * ${4:Detailed description} * -}*/ +}*/ \ No newline at end of file diff --git a/snippets/cc-mode/for b/snippets/cc-mode/for index 1b7be90d4..77cc9eb07 100644 --- a/snippets/cc-mode/for +++ b/snippets/cc-mode/for @@ -4,4 +4,4 @@ # -- for (${1:i = 0}; ${2:i < N}; ${3:++i}) { $0 -} +} \ No newline at end of file diff --git a/snippets/cc-mode/for_n b/snippets/cc-mode/for_n index 014d8ff82..cd00cfebf 100644 --- a/snippets/cc-mode/for_n +++ b/snippets/cc-mode/for_n @@ -5,4 +5,4 @@ # -- for (${1:auto }${2:i} = ${3:0}; $2 < ${4:MAXIMUM}; ++$2) { $0 -} +} \ No newline at end of file From 2d898fc000e531f0ad4d2c5b6d9e8bf48e9eb0d6 Mon Sep 17 00:00:00 2001 From: Andrea Crotti Date: Tue, 17 Aug 2021 21:17:20 +0100 Subject: [PATCH 10/86] add test file --- report/test/core_test.clj | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 report/test/core_test.clj diff --git a/report/test/core_test.clj b/report/test/core_test.clj new file mode 100644 index 000000000..9e75c818d --- /dev/null +++ b/report/test/core_test.clj @@ -0,0 +1,9 @@ +(ns core-test + (:require [clojure.test :refer [deftest testing is]] + [core :as sut])) + +(deftest unique-test + (let [all-modes (sut/parse-everything "../snippets")] + (doseq [[k snippets] all-modes] + (let [keys (map :key snippets)] + (is (= (count keys) (count (set keys))) (str "failed for mode " k)))))) From 8a2bf0b443f1add5674f2d7c94ae41bc7a5f3e3b Mon Sep 17 00:00:00 2001 From: Andrea Crotti Date: Tue, 17 Aug 2021 21:19:33 +0100 Subject: [PATCH 11/86] Add .circleci/config.yml From 6479b9ce1e0293e485d1d244eb74bf534518f506 Mon Sep 17 00:00:00 2001 From: Andrea Crotti Date: Tue, 17 Aug 2021 21:21:07 +0100 Subject: [PATCH 12/86] run tests --- .circleci/config.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index af2b26b81..646fef2c0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -10,12 +10,7 @@ jobs: # specify the version you desire here - image: circleci/clojure:lein-2.9.5 - # Specify service dependencies here if necessary - # CircleCI maintains a library of pre-built images - # documented at https://circleci.com/docs/2.0/circleci-images/ - # - image: circleci/postgres:9.4 - - working_directory: ~/repo + working_directory: ~/yasnippet-snippets/report environment: LEIN_ROOT: "true" @@ -24,8 +19,6 @@ jobs: steps: - checkout - - # Download and cache dependencies - restore_cache: keys: - v1-dependencies-{{ checksum "project.clj" }} From 091abbce0affa7b122f1a3fc20e032a3465e0d26 Mon Sep 17 00:00:00 2001 From: Andrea Crotti Date: Tue, 17 Aug 2021 21:22:12 +0100 Subject: [PATCH 13/86] right dir --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 646fef2c0..c5b5ef71f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -21,7 +21,7 @@ jobs: - checkout - restore_cache: keys: - - v1-dependencies-{{ checksum "project.clj" }} + - v1-dependencies-{{ checksum "report/project.clj" }} # fallback to using the latest cache if no exact match is found - v1-dependencies- @@ -30,7 +30,7 @@ jobs: - save_cache: paths: - ~/.m2 - key: v1-dependencies-{{ checksum "project.clj" }} + key: v1-dependencies-{{ checksum "report/project.clj" }} # run tests! - run: lein test From f73267bbea4a8aa693de3de3cb0d5f1e885a9957 Mon Sep 17 00:00:00 2001 From: Andrea Crotti Date: Tue, 17 Aug 2021 21:28:36 +0100 Subject: [PATCH 14/86] image --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c5b5ef71f..792b881ef 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,7 +8,7 @@ jobs: build: docker: # specify the version you desire here - - image: circleci/clojure:lein-2.9.5 + - image: circleci/clojure:openjdk-11-lein-2.9.5 working_directory: ~/yasnippet-snippets/report From f60f59db6a6923a7ca446e163d18339444f3e45b Mon Sep 17 00:00:00 2001 From: Andrea Crotti Date: Tue, 17 Aug 2021 21:29:40 +0100 Subject: [PATCH 15/86] report --- .circleci/config.yml | 4 ++-- report/.lein-failures | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 report/.lein-failures diff --git a/.circleci/config.yml b/.circleci/config.yml index 792b881ef..38a4dec87 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -25,7 +25,7 @@ jobs: # fallback to using the latest cache if no exact match is found - v1-dependencies- - - run: lein deps + - run: cd report && lein deps - save_cache: paths: @@ -33,7 +33,7 @@ jobs: key: v1-dependencies-{{ checksum "report/project.clj" }} # run tests! - - run: lein test + - run: cd report && lein test workflows: build: diff --git a/report/.lein-failures b/report/.lein-failures new file mode 100644 index 000000000..4c6e8c604 --- /dev/null +++ b/report/.lein-failures @@ -0,0 +1 @@ +{"core-test" ["unique-test" "unique-test" "unique-test" "unique-test" "unique-test" "unique-test" "unique-test" "unique-test" "unique-test" "unique-test" "unique-test" "unique-test" "unique-test" "unique-test" "unique-test" "unique-test" "unique-test" "unique-test" "unique-test" "unique-test" "unique-test"]} \ No newline at end of file From 8bf33e9e54de0dca1728221b0dda6789d99b7930 Mon Sep 17 00:00:00 2001 From: Andrea Crotti Date: Tue, 17 Aug 2021 21:36:08 +0100 Subject: [PATCH 16/86] name and not key --- report/test/core_test.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/report/test/core_test.clj b/report/test/core_test.clj index 9e75c818d..0c3c38c73 100644 --- a/report/test/core_test.clj +++ b/report/test/core_test.clj @@ -5,5 +5,5 @@ (deftest unique-test (let [all-modes (sut/parse-everything "../snippets")] (doseq [[k snippets] all-modes] - (let [keys (map :key snippets)] + (let [keys (map :name snippets)] (is (= (count keys) (count (set keys))) (str "failed for mode " k)))))) From 0c28a08e834001ab4c07d36f68dc160abeb02b17 Mon Sep 17 00:00:00 2001 From: Andrea Crotti Date: Tue, 17 Aug 2021 21:50:42 +0100 Subject: [PATCH 17/86] remove/rename a lot of duplicated snippets, and add tests There were currently many snippets with the same name in the same mode, which means they could never be activated. With this PR we make a pretty big cleanup of all the ones that were unusable, by removing or renaming them. Also add a couple of tests to ensure more consistency across the board. --- .gitignore | 1 + report/src/core.clj | 31 +++++++++---- report/test/core_test.clj | 44 +++++++++++++++++-- snippets/bibtex-mode/mvproceedings | 19 -------- snippets/c++-mode/acl | 8 ---- snippets/c++-mode/d_operator_ostream | 5 --- snippets/c++-mode/oit | 8 ---- snippets/c++-mode/rmv | 9 ---- snippets/c++-mode/sti | 6 --- snippets/c++-mode/sto | 6 --- snippets/c++-mode/stv | 6 --- snippets/c++-mode/trm | 6 --- snippets/c++-mode/upr | 9 ---- snippets/csharp-mode/comment.2 | 3 +- snippets/emacs-lisp-mode/.read_me | 8 ---- snippets/emacs-lisp-mode/find-replace | 18 -------- snippets/emacs-lisp-mode/grabthing | 1 + snippets/emacs-lisp-mode/traverse_dir | 7 --- .../emacs-lisp-mode/x-dired.process_marked | 18 -------- snippets/emacs-lisp-mode/x-file.process | 19 -------- snippets/emacs-lisp-mode/x-file.read-lines | 19 -------- snippets/emacs-lisp-mode/x-find-replace | 19 -------- snippets/emacs-lisp-mode/x-grabstring | 6 --- snippets/emacs-lisp-mode/x-grabthing | 6 --- snippets/emacs-lisp-mode/x-traverse_dir | 8 ---- snippets/emacs-lisp-mode/x-word-or-region | 29 ------------ snippets/html-mode/form | 4 +- snippets/html-mode/script.javascript | 4 +- snippets/html-mode/script.javascript-src | 4 +- snippets/hy-mode/class | 4 +- snippets/hy-mode/cond | 4 +- snippets/hy-mode/defm | 4 +- snippets/hy-mode/do | 4 +- snippets/hy-mode/if | 4 +- snippets/hy-mode/ifn | 4 +- snippets/hy-mode/imp | 4 +- snippets/hy-mode/main | 4 +- snippets/hy-mode/req | 4 +- snippets/hy-mode/unless | 4 +- snippets/hy-mode/when | 4 +- snippets/js-mode/type-multiline-comment | 2 +- snippets/lisp-mode/for | 2 +- snippets/lisp-mode/foreach | 2 +- snippets/markdown-mode/hyphen | 2 +- snippets/markdown-mode/plus | 2 +- snippets/nxml-mode/form | 4 +- snippets/php-mode/method-doc | 8 ---- snippets/python-mode/assertRaises.with | 4 +- snippets/raku-mode/raku-mode | 1 - snippets/rust-mode/new | 2 +- snippets/sh-mode/args | 2 +- snippets/sh-mode/case | 2 +- snippets/sh-mode/select | 2 +- 53 files changed, 108 insertions(+), 302 deletions(-) delete mode 100644 snippets/bibtex-mode/mvproceedings delete mode 100644 snippets/c++-mode/acl delete mode 100644 snippets/c++-mode/d_operator_ostream delete mode 100644 snippets/c++-mode/oit delete mode 100644 snippets/c++-mode/rmv delete mode 100644 snippets/c++-mode/sti delete mode 100644 snippets/c++-mode/sto delete mode 100644 snippets/c++-mode/stv delete mode 100644 snippets/c++-mode/trm delete mode 100644 snippets/c++-mode/upr delete mode 100644 snippets/emacs-lisp-mode/.read_me delete mode 100644 snippets/emacs-lisp-mode/find-replace delete mode 100644 snippets/emacs-lisp-mode/traverse_dir delete mode 100644 snippets/emacs-lisp-mode/x-dired.process_marked delete mode 100644 snippets/emacs-lisp-mode/x-file.process delete mode 100644 snippets/emacs-lisp-mode/x-file.read-lines delete mode 100644 snippets/emacs-lisp-mode/x-find-replace delete mode 100644 snippets/emacs-lisp-mode/x-grabstring delete mode 100644 snippets/emacs-lisp-mode/x-grabthing delete mode 100644 snippets/emacs-lisp-mode/x-traverse_dir delete mode 100644 snippets/emacs-lisp-mode/x-word-or-region delete mode 100644 snippets/php-mode/method-doc delete mode 100644 snippets/raku-mode/raku-mode diff --git a/.gitignore b/.gitignore index c4f081636..da76e7c31 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ **/.yas-compiled-snippets.el /report/target/ +/report/.nrepl-port diff --git a/report/src/core.clj b/report/src/core.clj index 943b2e135..7f42f342e 100644 --- a/report/src/core.clj +++ b/report/src/core.clj @@ -22,25 +22,28 @@ (defn mode-files [mode-dir] - (filter #(.isFile %) - (file-seq (io/file mode-dir)))) + (->> (io/file mode-dir) + file-seq + (filter #(and (.isFile %) (not (.startsWith (.getName %) ".")))))) (defn parse-mode [mode-dir] (for [f (mode-files mode-dir)] + ;; directories should be excluded from here ideally? {:filename (.getName (io/file mode-dir f)) - :name (extract-keyword f "name") - :key (or (extract-keyword f "key") - (extract-keyword f "name")) - :group (extract-keyword f "group") - :desc (extract-keyword f "desc")})) + :name (extract-keyword f "name") + ;; FIXME: I think this is not correct, it uses the filename actually? + :key (or (extract-keyword f "key") + (extract-keyword f "name")) + :group (extract-keyword f "group") + :desc (extract-keyword f "desc")})) (defn parse-everything [snippets-dir] (into {} (remove nil?) (for [d (file-seq (io/file snippets-dir))] - (when (.isDirectory d) + (when (and (not= (.getPath d) snippets-dir) (.isDirectory d)) {(.getName d) (parse-mode d)})))) (defn store-to-edn @@ -109,3 +112,15 @@ (comment (gen-html "../snippets")) + +(comment + (def all-modes (all-modes "../snippets")) + (doseq [[mode ss] all-modes] + (do + (print "mode =" mode) + (let [grouped + (->> (group-by :name ss) + (filter #(> (count (second %)) 1)))] + (doseq [[g vs] grouped] + (when (pos? (count vs)) + (println g (map :filename vs)))))))) diff --git a/report/test/core_test.clj b/report/test/core_test.clj index 0c3c38c73..598dfa45d 100644 --- a/report/test/core_test.clj +++ b/report/test/core_test.clj @@ -1,9 +1,47 @@ (ns core-test (:require [clojure.test :refer [deftest testing is]] - [core :as sut])) + [core :as sut] + [clojure.string :as str] + [clojure.java.io :as io])) (deftest unique-test (let [all-modes (sut/parse-everything "../snippets")] (doseq [[k snippets] all-modes] - (let [keys (map :name snippets)] - (is (= (count keys) (count (set keys))) (str "failed for mode " k)))))) + (let [keys (map :name snippets) + freq (->> (frequencies keys) + (filter #(> (second %) 1)))] + (is (= (count keys) (count (set keys))) + (str "failed for mode " k " and failing things:\n" + (str/join ", " (map first freq)))))))) + +(defn with-nil-key [ns key] + (str/join ", " (map :filename (filter #(nil? (key %)) ns)))) + +(deftest non-nils-test + (let [all-modes (sut/parse-everything "../snippets")] + (doseq [[k snippets] all-modes] + (let [ns (filter #(not (.startsWith (:filename %) ".yas-")) snippets) + nil-names (with-nil-key ns :name) + nil-keys (with-nil-key ns :key)] + (is (empty? nil-names) (str "nils in " k " => " nil-names)) + (is (empty? nil-keys) (str "nils in " k "=> " nil-keys)))))) + +(comment + (def reg #"key:(\w)") + + (doseq [f (file-seq (io/file "../snippets")) + :when (.isFile f) + :let [c (slurp f)]] + + (when (re-seq reg c) + (let [new-c (str/replace c reg "key: $1")] + (spit (.getPath f) new-c)))) + + (doseq [f (file-seq (io/file "../snippets")) + :when (.isFile f) + :let [c (slurp f) + res (re-seq #"contributor:" c)]] + + ;; should I clean all of them? + (when (seq res) + (println "file = " f)))) diff --git a/snippets/bibtex-mode/mvproceedings b/snippets/bibtex-mode/mvproceedings deleted file mode 100644 index 4446bb86f..000000000 --- a/snippets/bibtex-mode/mvproceedings +++ /dev/null @@ -1,19 +0,0 @@ -# -*- mode: snippet -*- -# name: proceedings -# key: proceedings -# author: Spenser Truex -# -- -@mvproceedings{ ${title}, -title = {${title}}, -year = {${year}}${, -editor = {${editor}}}${, -volume = {${volume}}}${, -series = {${series}}}${, -address = {${address}}}${, -month = {${month}}}${, -organization = {${organization}}}${, -publisher = {${publisher}}}${, -note = {${note}}} -} - -$0 \ No newline at end of file diff --git a/snippets/c++-mode/acl b/snippets/c++-mode/acl deleted file mode 100644 index 9d5d0422c..000000000 --- a/snippets/c++-mode/acl +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: accumulate -# key: acl -# -- -auto sum = std::accumulate(std::begin(${1:container}), std::end($1), 0, [](int total, $2) { - $3 -}); -$0 diff --git a/snippets/c++-mode/d_operator_ostream b/snippets/c++-mode/d_operator_ostream deleted file mode 100644 index d23f4d62a..000000000 --- a/snippets/c++-mode/d_operator_ostream +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: d_operator<< -# key: << -# -- -friend std::ostream& operator<<(std::ostream&, const ${1:Name}&); \ No newline at end of file diff --git a/snippets/c++-mode/oit b/snippets/c++-mode/oit deleted file mode 100644 index 74ad7e561..000000000 --- a/snippets/c++-mode/oit +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: copy -# key: oit -# -- -std::copy(std::begin(${1:container}), std::end($1), std::ostream_iterator<$2>{ -%\istd::cout, "$3" -}); -$0 diff --git a/snippets/c++-mode/rmv b/snippets/c++-mode/rmv deleted file mode 100644 index 01fa9f92b..000000000 --- a/snippets/c++-mode/rmv +++ /dev/null @@ -1,9 +0,0 @@ -# -*- mode: snippet -*- -# name: remove -# key: rmv -# -- -auto pos = std::remove(std::begin(${1:container}), std::end($1), $2); -if (pos != std::end($1)) { - $3 -} -$0 diff --git a/snippets/c++-mode/sti b/snippets/c++-mode/sti deleted file mode 100644 index 37a218297..000000000 --- a/snippets/c++-mode/sti +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: cin -# key: sti -# -- -std::cin >> -$0 diff --git a/snippets/c++-mode/sto b/snippets/c++-mode/sto deleted file mode 100644 index 30db50b5d..000000000 --- a/snippets/c++-mode/sto +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: cout -# key: sto -# -- -std::cout << -$0 diff --git a/snippets/c++-mode/stv b/snippets/c++-mode/stv deleted file mode 100644 index 1354c3d78..000000000 --- a/snippets/c++-mode/stv +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: vector -# key: stv -# -- -std::vector<$2> $3 -$0 diff --git a/snippets/c++-mode/trm b/snippets/c++-mode/trm deleted file mode 100644 index d7ffea1eb..000000000 --- a/snippets/c++-mode/trm +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: generate_n -# key: trm -# -- -${1:container}.erase($1.find_last_not_of(" \t\n\r") + 1); -$0 diff --git a/snippets/c++-mode/upr b/snippets/c++-mode/upr deleted file mode 100644 index 8c9e0f825..000000000 --- a/snippets/c++-mode/upr +++ /dev/null @@ -1,9 +0,0 @@ -# -*- mode: snippet -*- -# name: transform -# key: upr -# -- -std::transform(std::begin(${1:container}), std::end($1), std::begin($1), [](char c) { -return std::toupper(c); -}); -$2 -$0 diff --git a/snippets/csharp-mode/comment.2 b/snippets/csharp-mode/comment.2 index b9aea85a6..82b54e7dd 100644 --- a/snippets/csharp-mode/comment.2 +++ b/snippets/csharp-mode/comment.2 @@ -1,6 +1,5 @@ # -*- mode: snippet -*- # contributor : Alejandro Espinoza Esparza -# name: /// ... +# name: /// $1 # key: comment # -- -/// $1 \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/.read_me b/snippets/emacs-lisp-mode/.read_me deleted file mode 100644 index 04bb68a79..000000000 --- a/snippets/emacs-lisp-mode/.read_me +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- --*- coding: utf-8 -*- -Originally started by Xah Lee (xahlee.org) on 2009-02-22 -Released under GPL 3. - -Feel free to add missing ones or modify existing ones to improve. - -Those starting with “x-” are supposed to be idiom templates. Not sure it's very useful. They might start with “i-” or "id-" in the future. \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/find-replace b/snippets/emacs-lisp-mode/find-replace deleted file mode 100644 index 3879ed38b..000000000 --- a/snippets/emacs-lisp-mode/find-replace +++ /dev/null @@ -1,18 +0,0 @@ -# -*- mode: snippet -*- -# name: find and replace on region -# contributor : Xah Lee -# -- -(defun replace-html-chars-region (start end) - "Replace “<” to “<” and other chars in HTML. -This works on the current region." - (interactive "r") - (save-restriction - (narrow-to-region start end) - (goto-char (point-min)) - (while (search-forward "&" nil t) (replace-match "&" nil t)) - (goto-char (point-min)) - (while (search-forward "<" nil t) (replace-match "<" nil t)) - (goto-char (point-min)) - (while (search-forward ">" nil t) (replace-match ">" nil t)) - ) - ) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/grabthing b/snippets/emacs-lisp-mode/grabthing index a1dc5232f..c80635b12 100644 --- a/snippets/emacs-lisp-mode/grabthing +++ b/snippets/emacs-lisp-mode/grabthing @@ -1,5 +1,6 @@ # -*- mode: snippet -*- # name: grab word under cursor +# key: grabthing # contributor : Xah Lee # -- (setq $0 (thing-at-point 'symbol)) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/traverse_dir b/snippets/emacs-lisp-mode/traverse_dir deleted file mode 100644 index 3c46359df..000000000 --- a/snippets/emacs-lisp-mode/traverse_dir +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: traversing a directory -# contributor : Xah Lee -# -- -;; apply a function to all files in a dir -(require 'find-lisp) -(mapc 'my-process-file (find-lisp-find-files "~/myweb/" "\\.html$")) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/x-dired.process_marked b/snippets/emacs-lisp-mode/x-dired.process_marked deleted file mode 100644 index 156cc6832..000000000 --- a/snippets/emacs-lisp-mode/x-dired.process_marked +++ /dev/null @@ -1,18 +0,0 @@ -# -*- mode: snippet -*- -# contributor: Xah Lee (XahLee.org) -# name: process marked files in dired -# key: x-dired -# -- -;; idiom for processing a list of files in dired's marked files - -;; suppose myProcessFile is your function that takes a file path -;; and do some processing on the file - -(defun dired-myProcessFile () - "apply myProcessFile function to marked files in dired." - (interactive) - (require 'dired) - (mapc 'myProcessFile (dired-get-marked-files)) -) - -;; to use it, type M-x dired-myProcessFile \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/x-file.process b/snippets/emacs-lisp-mode/x-file.process deleted file mode 100644 index c18fc1675..000000000 --- a/snippets/emacs-lisp-mode/x-file.process +++ /dev/null @@ -1,19 +0,0 @@ -# -*- mode: snippet -*- -# contributor: Xah Lee (XahLee.org) -# name: a function that process a file -# key: x-file -# -- -(defun doThisFile (fpath) - "Process the file at path FPATH ..." - (let () - ;; create temp buffer without undo record or font lock. (more efficient) - ;; first space in temp buff name is necessary - (set-buffer (get-buffer-create " myTemp")) - (insert-file-contents fpath nil nil nil t) - - ;; process it ... - ;; (goto-char 0) ; move to begining of file's content (in case it was open) - ;; ... do something here - ;; (write-file fpath) ;; write back to the file - - (kill-buffer " myTemp"))) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/x-file.read-lines b/snippets/emacs-lisp-mode/x-file.read-lines deleted file mode 100644 index 29e0d63d2..000000000 --- a/snippets/emacs-lisp-mode/x-file.read-lines +++ /dev/null @@ -1,19 +0,0 @@ -# -*- mode: snippet -*- -# contributor: Xah Lee (XahLee.org) -# name: read lines of a file -# key: x-file -# -- -(defun read-lines (filePath) - "Return a list of lines in FILEPATH." - (with-temp-buffer - (insert-file-contents filePath) - (split-string - (buffer-string) "\n" t))) - -;; process all lines -(mapc - (lambda (aLine) - (message aLine) ; do your stuff here - ) - (read-lines "inputFilePath") -) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/x-find-replace b/snippets/emacs-lisp-mode/x-find-replace deleted file mode 100644 index 2d086b354..000000000 --- a/snippets/emacs-lisp-mode/x-find-replace +++ /dev/null @@ -1,19 +0,0 @@ -# -*- mode: snippet -*- -# contributor: Xah Lee (XahLee.org) -# name: find and replace on region -# key: x-find-replace -# -- -(defun replace-html-chars-region (start end) - "Replace “<” to “<” and other chars in HTML. -This works on the current region." - (interactive "r") - (save-restriction - (narrow-to-region start end) - (goto-char (point-min)) - (while (search-forward "&" nil t) (replace-match "&" nil t)) - (goto-char (point-min)) - (while (search-forward "<" nil t) (replace-match "<" nil t)) - (goto-char (point-min)) - (while (search-forward ">" nil t) (replace-match ">" nil t)) - ) - ) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/x-grabstring b/snippets/emacs-lisp-mode/x-grabstring deleted file mode 100644 index ded68dbb7..000000000 --- a/snippets/emacs-lisp-mode/x-grabstring +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# contributor: Xah Lee (XahLee.org) -# name: grab buffer substring -# key: x-grabstring -# -- -(setq $0 (buffer-substring-no-properties myStartPos myEndPos)) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/x-grabthing b/snippets/emacs-lisp-mode/x-grabthing deleted file mode 100644 index 91a37e5fd..000000000 --- a/snippets/emacs-lisp-mode/x-grabthing +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# contributor: Xah Lee (XahLee.org) -# name: grab word under cursor -# key: x-grabthing -# -- -(setq $0 (thing-at-point 'symbol)) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/x-traverse_dir b/snippets/emacs-lisp-mode/x-traverse_dir deleted file mode 100644 index 33d627cde..000000000 --- a/snippets/emacs-lisp-mode/x-traverse_dir +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: traversing a directory -# contributor: Xah Lee (XahLee.org) -# key: x-traverse_dir -# -- -;; apply a function to all files in a dir -(require 'find-lisp) -(mapc 'my-process-file (find-lisp-find-files "~/myweb/" "\\.html$")) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/x-word-or-region b/snippets/emacs-lisp-mode/x-word-or-region deleted file mode 100644 index 549e6f740..000000000 --- a/snippets/emacs-lisp-mode/x-word-or-region +++ /dev/null @@ -1,29 +0,0 @@ -# -*- mode: snippet -*- -# contributor: Xah Lee (XahLee.org) -# name: Command that works on region or word -# key: x-word-or-region -# -- -;; example of a command that works on current word or text selection -(defun down-case-word-or-region () - "Lower case the current word or text selection." -(interactive) -(let (pos1 pos2 meat) - (if (and transient-mark-mode mark-active) - (setq pos1 (region-beginning) - pos2 (region-end)) - (setq pos1 (car (bounds-of-thing-at-point 'symbol)) - pos2 (cdr (bounds-of-thing-at-point 'symbol)))) - - ; now, pos1 and pos2 are the starting and ending positions - ; of the current word, or current text selection if exists - - ;; put your code here. - $0 - ;; Some example of things you might want to do - (downcase-region pos1 pos2) ; example of a func that takes region as args - (setq meat (buffer-substring-no-properties pos1 pos2)) ; grab the text. - (delete-region pos1 pos2) ; get rid of it - (insert "newText") ; insert your new text - - ) -) \ No newline at end of file diff --git a/snippets/html-mode/form b/snippets/html-mode/form index 43ca80a72..35f6a2a7f 100644 --- a/snippets/html-mode/form +++ b/snippets/html-mode/form @@ -1,6 +1,6 @@ # -*- mode: snippet -*- -# contributor : Jimmy Wu -# name:
+# key: form +# name: form # --
$0 diff --git a/snippets/html-mode/script.javascript b/snippets/html-mode/script.javascript index 54ef47a48..ecf97a6df 100644 --- a/snippets/html-mode/script.javascript +++ b/snippets/html-mode/script.javascript @@ -1,6 +1,6 @@ # -*- mode: snippet -*- -# contributor : Jimmy Wu -# name: +# key: script +# name: script # -- +# key: script +# name: script src # -- \ No newline at end of file diff --git a/snippets/hy-mode/class b/snippets/hy-mode/class index 3f73cc7f3..c0db44689 100644 --- a/snippets/hy-mode/class +++ b/snippets/hy-mode/class @@ -1,6 +1,6 @@ # -*- mode: snippet -*- -# name:class -# key:class +# name: class +# key: class # binding: direct-keybinding # -- (defclass ${1:ClassName} [${2:BaseClass}] diff --git a/snippets/hy-mode/cond b/snippets/hy-mode/cond index 7b4e9243d..53b99978d 100644 --- a/snippets/hy-mode/cond +++ b/snippets/hy-mode/cond @@ -1,6 +1,6 @@ # -*- mode: snippet -*- -# name:cond -# key:cond +# name: cond +# key: cond # binding: direct-keybinding # -- (cond diff --git a/snippets/hy-mode/defm b/snippets/hy-mode/defm index 0b7655867..0f43a0dfc 100644 --- a/snippets/hy-mode/defm +++ b/snippets/hy-mode/defm @@ -1,6 +1,6 @@ # -*- mode: snippet -*- -# name:defm -# key:defm +# name: defm +# key: defm # binding: direct-keybinding # -- (defmacro ${1:macro-name} [${2:arg}] diff --git a/snippets/hy-mode/do b/snippets/hy-mode/do index 39a689742..c5e362b56 100644 --- a/snippets/hy-mode/do +++ b/snippets/hy-mode/do @@ -1,6 +1,6 @@ # -*- mode: snippet -*- -# name:do -# key:do +# name: do +# key: do # binding: direct-keybinding # -- (do $0) \ No newline at end of file diff --git a/snippets/hy-mode/if b/snippets/hy-mode/if index de952d393..0de314e3d 100644 --- a/snippets/hy-mode/if +++ b/snippets/hy-mode/if @@ -1,6 +1,6 @@ # -*- mode: snippet -*- -# name:if -# key:if +# name: if +# key: if # binding: direct-keybinding # -- (if ${1:condition} diff --git a/snippets/hy-mode/ifn b/snippets/hy-mode/ifn index 4c57d79fd..2be326990 100644 --- a/snippets/hy-mode/ifn +++ b/snippets/hy-mode/ifn @@ -1,6 +1,6 @@ # -*- mode: snippet -*- -# name:ifn -# key:ifn +# name: ifn +# key: ifn # binding: direct-keybinding # -- (if-not ${1:condition} diff --git a/snippets/hy-mode/imp b/snippets/hy-mode/imp index a69c5e51d..b19271b33 100644 --- a/snippets/hy-mode/imp +++ b/snippets/hy-mode/imp @@ -1,6 +1,6 @@ # -*- mode: snippet -*- -# name:import -# key:import +# name: import +# key: import # binding: direct-keybinding # -- (import [${1:module-name} [${2:exposing}]]) \ No newline at end of file diff --git a/snippets/hy-mode/main b/snippets/hy-mode/main index a68e4bf41..1a52f17bd 100644 --- a/snippets/hy-mode/main +++ b/snippets/hy-mode/main @@ -1,6 +1,6 @@ # -*- mode: snippet -*- -# name:main -# key:main +# name: main +# key: main # binding: direct-keybinding # -- (defmain [&rest ${1:args}] diff --git a/snippets/hy-mode/req b/snippets/hy-mode/req index 82f5377a7..ee2931699 100644 --- a/snippets/hy-mode/req +++ b/snippets/hy-mode/req @@ -1,6 +1,6 @@ # -*- mode: snippet -*- -# name:req -# key:req +# name: req +# key: req # binding: direct-keybinding # -- (req [${1:module-name} [${2:exposing}]]) \ No newline at end of file diff --git a/snippets/hy-mode/unless b/snippets/hy-mode/unless index d3fecaf9a..ba0e8a3fc 100644 --- a/snippets/hy-mode/unless +++ b/snippets/hy-mode/unless @@ -1,6 +1,6 @@ # -*- mode: snippet -*- -# name:unless -# key:unless +# name: unless +# key: unless # binding: direct-keybinding # -- (unless ${1:condition} diff --git a/snippets/hy-mode/when b/snippets/hy-mode/when index c34913e39..b4f085379 100644 --- a/snippets/hy-mode/when +++ b/snippets/hy-mode/when @@ -1,6 +1,6 @@ # -*- mode: snippet -*- -# name:when -# key:when +# name: when +# key: when # binding: direct-keybinding # -- (when ${1:condition} diff --git a/snippets/js-mode/type-multiline-comment b/snippets/js-mode/type-multiline-comment index 5164b4b45..09cbea99e 100644 --- a/snippets/js-mode/type-multiline-comment +++ b/snippets/js-mode/type-multiline-comment @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# name: type-inline-comment +# name: type-multiline-comment # key: *ty #condition: (= (js2-node-type (js2-node-at-point)) js2-COMMENT) # -- diff --git a/snippets/lisp-mode/for b/snippets/lisp-mode/for index de8f6444e..14817eb8a 100644 --- a/snippets/lisp-mode/for +++ b/snippets/lisp-mode/for @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# name: do +# name: for # key: for # -- (dotimes (${1:var} ${2:count-form}) diff --git a/snippets/lisp-mode/foreach b/snippets/lisp-mode/foreach index a993bf1ec..af8b52699 100644 --- a/snippets/lisp-mode/foreach +++ b/snippets/lisp-mode/foreach @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# name: do +# name: foreach # key: foreach # -- (dolist (${1:var} ${2:list-form}) diff --git a/snippets/markdown-mode/hyphen b/snippets/markdown-mode/hyphen index dd2347791..8827292c3 100644 --- a/snippets/markdown-mode/hyphen +++ b/snippets/markdown-mode/hyphen @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# name: Unordered List +# name: Unordered List - # contributor: Peng Deng # key: - # -- diff --git a/snippets/markdown-mode/plus b/snippets/markdown-mode/plus index 662351f52..ebcaab156 100644 --- a/snippets/markdown-mode/plus +++ b/snippets/markdown-mode/plus @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# name: Unordered List +# name: Unordered List + # contributor: Peng Deng # key: + # -- diff --git a/snippets/nxml-mode/form b/snippets/nxml-mode/form index 77bfd4beb..e914a6467 100644 --- a/snippets/nxml-mode/form +++ b/snippets/nxml-mode/form @@ -1,6 +1,6 @@ # -*- mode: snippet -*- -# contributor : Anders Bach Nielsen -# name: +# key: form +# name: form # --
$0 diff --git a/snippets/php-mode/method-doc b/snippets/php-mode/method-doc deleted file mode 100644 index 3b88506c9..000000000 --- a/snippets/php-mode/method-doc +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# contributor: USAMI Kenta -# name: PHPDoc @property -# key: *property -# group: annotation -# -- -* @property ${1:type} ${2:$variable} ${3:description}${0: -*} \ No newline at end of file diff --git a/snippets/python-mode/assertRaises.with b/snippets/python-mode/assertRaises.with index c97807eee..5992127fc 100644 --- a/snippets/python-mode/assertRaises.with +++ b/snippets/python-mode/assertRaises.with @@ -1,6 +1,6 @@ # -*- mode: snippet -*- -# name: assertRaises -# key: ar +# name: assertRaisesWith +# key: arw # -- with self.assertRaises(${1:Exception}): $0 diff --git a/snippets/raku-mode/raku-mode b/snippets/raku-mode/raku-mode deleted file mode 100644 index 8c6c7ba67..000000000 --- a/snippets/raku-mode/raku-mode +++ /dev/null @@ -1 +0,0 @@ -/Users/toni/.emacs.d/snippets/raku-mode \ No newline at end of file diff --git a/snippets/rust-mode/new b/snippets/rust-mode/new index 9e7e0638b..86d20e6c9 100644 --- a/snippets/rust-mode/new +++ b/snippets/rust-mode/new @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# name: fn main() { ... } +# name: pub fn new() { ... } # key: new # -- pub fn new($1) -> ${2:Name} { diff --git a/snippets/sh-mode/args b/snippets/sh-mode/args index 09fe3a020..018f60a90 100644 --- a/snippets/sh-mode/args +++ b/snippets/sh-mode/args @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# name:args +# name: args # key: args # -- if [ $# -lt ${1:2} ] diff --git a/snippets/sh-mode/case b/snippets/sh-mode/case index 613288371..648daef4b 100644 --- a/snippets/sh-mode/case +++ b/snippets/sh-mode/case @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# name : case +# name: case # key: case # -- case ${1:cond} in diff --git a/snippets/sh-mode/select b/snippets/sh-mode/select index 3a62902e3..794971066 100644 --- a/snippets/sh-mode/select +++ b/snippets/sh-mode/select @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# name : select +# name: select # key: select # -- select ${1:var} in ${2:stuff}; do From b98a80e116b6725eb255fae2146d9326aa8e8fe7 Mon Sep 17 00:00:00 2001 From: Andrea Crotti Date: Tue, 7 Sep 2021 21:20:19 +0100 Subject: [PATCH 18/86] bump snippets.html --- snippets.html | 22674 +----------------------------------------------- 1 file changed, 82 insertions(+), 22592 deletions(-) diff --git a/snippets.html b/snippets.html index da97ca2d8..76dc53d43 100644 --- a/snippets.html +++ b/snippets.html @@ -1,22593 +1,83 @@ - - - - -
-

antlr-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
targettargettarget
projectprojproject
propertypropproperty
-
-
-

apples-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
repeat-untilrepeat-untilrepeat-until
ignoringignoringignoring
tell-application-to-activatetell-application-to-activatetell-application-to-activate
with-transactionwith-transactionwith-transaction
with-timeout-of-secondswith-timeout-of-secondswith-timeout-of-seconds
consideringconsideringconsidering
ononon
ififif
commentcommentcomment
repeat-withrepeat-withrepeat-with
repeatrepeatrepeat
trytrytry
.yas-parents
display-dialogdisplay-dialogdisplay-dialog
using-terms-from-applicationusing-terms-from-applicationusing-terms-from-application
ignoring-application-responsesignoring-application-responsesignoring-application-responses
considering-application-responsesconsidering-application-responsesconsidering-application-responses
tell-applicationtell-applicationtell-application
repeat-whilerepeat-whilerepeat-while
-
-
-

applescript-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
repeat-untilrepeat-untilrepeat-until
ignoringignoringignoring
tell-application-to-activatetell-application-to-activatetell-application-to-activate
with-transactionwith-transactionwith-transaction
with-timeout-of-secondswith-timeout-of-secondswith-timeout-of-seconds
consideringconsideringconsidering
ononon
ififif
commentcommentcomment
repeat-withrepeat-withrepeat-with
repeatrepeatrepeat
trytrytry
.yas-parents
display-dialogdisplay-dialogdisplay-dialog
using-terms-from-applicationusing-terms-from-applicationusing-terms-from-application
ignoring-application-responsesignoring-application-responsesignoring-application-responses
considering-application-responsesconsidering-application-responsesconsidering-application-responses
tell-applicationtell-applicationtell-application
repeat-whilerepeat-whilerepeat-while
-
-
-

bazel-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
sh_binaryshbinshbin
java_runtimejrunjrun
filegroupfgfg
genquerygenqgenq
cc_binaryccbccb
cc_testcctcct
py_runtimepyrunpyrun
sh_testshtestshtest
cc_proto_libraryccpccp
py_binarypybinpybin
java_importjimpjimp
workspacewsws
aliasaliasalias
cc_importccicci
py_testpytestpytest
java_libraryjlibjlib
py_librarypylibpylib
cc_inc_libraryccincccinc
cc_librarycclccl
java_binaryjbinjbin
java_testjtestjtest
sh_libraryshlibshlib
-
-
-

bibtex-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
.yas-setup.el
techreporttechreporttechreport
masterthesismasterthesismasterthesis
bookletbookletbooklet
unpublishedunpublishedunpublished
bookbookbook
manualmanualmanual
incollectionincollectionincollection
inbookinbookinbook
phdthesisphdthesisphdthesis
conferenceconferenceconference
articlearticlearticle
inproceedingsinproceedingsinproceedings
proceedingsproceedingsproceedings
miscmiscmisc
-
-
-

c++-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
coutstosto
.yas-setup.el
removermvrmv
operator<<<<operator_ostreamoperator overloading
ioioio
d_operator<<<<d_operator_ostream
constructorctconstructor
fillfilfil
namespace ...nsns
all_ofaloalo
remove_copy_ifrmfrmf
deletedldelete
mismatchmsmmsm
generate_ntrmtrm
find_if_notfinfin
iotaitaita
string to lower caselwrlwr
sort_heapsthsth
ignoreignoreignore
equaleqleql
countcntcnt
findfndfnd
rotate_copyrtcrtc
is_heapihpihp
search_nsrnsrn
publicpbpublic
member_functionmfmember_function
v.begin(), v.end()beginendbeginend
partition_copyptcptc
is_sorted_untilisuisu
cincincin
copy_backwardcpbcpb
push_heapphhphh
move_backwardmpbmpb
thisththis
count_ifcnicni
test_suitetstest_suitetesting
swap_rangesswrswr
adjacent_findajfajf
random_shuffleshfshf
operator====operator==operator overloading
privateprprivate
fill_nflnfln
prev_permutationprpprp
next_permutationnxpnxp
friendfrfriend
replace_copy_ifrcirci
reverservrrvr
make_heapmkhmkh
templatetemptemplate
operator==operator=operator overloading
docdocdoc
std::ststd_colon
dynamic_castingcastdynamic_casting
unique_copyucpucp
uniqueuqeuqe
accumulateaclacl
inlineilinline
partitionptnptn
trytrytry
copycpycpy
foriforifori
modulemodmodule
.yas-parents
find_first_offfoffo
operator!=!=operator!=operator overloading
cinstisti
transformtfmtfm
vectorstvstv
min_elementmnemne
stdstdstd
cppcppcpp
fun_declarationffun_declaration
is_heap_untilihuihu
namespacensnamespace
cerrerrcerr
using namespace ... usingusing
find_iffnifni
replacerplrpl
copy_ifcpicpi
ostreamosostream
d_operator[][d_operator[]
cstdcstdcstd
generate_ngnngnn
gtestgtestgtesttesting
d_operator[]_constc[d_operator[]_const
copyoitoit
coutcoutcout
throwthrowthrow
packpackpack
strstrstr
remove whitespace at beginningltrltr
class11cls11class11c++11Snippet for C++11 classes based on c++-mode/class. Allows for Rule of
test_maintest_maintest_maintesting
max_elementmxemxe
copy_ncpncpn
d_operator<<<<d_operator
removeermerm
find_endfnefne
trywtrywtryw
none_ofnnonno
reverse_copyrvcrvc
mapmapmap
mergemrgmrg
fixturefixtfixture
searchsrhsrh
lexigraphical_comparelxclxc
is_permutationipripr
partial_sortpstpst
operator++operator+operator overloading
const_[]c[const_[]
stable_sortstssts
operator>>>>operator_istreamoperator overloading
stable_partitionsptspt
iteratoriteriterator
operator+=+=operator+=operator overloading
accumulateacmacm
transformuprupr
replace_copyrpcrpc
d_operator>>>>d_operator_istream
is_sortedississ
is_partitionediptipt
remove_ifrmirmi
- - sssstream
operator[][]operator[]operator overloading
replace_ifrpirpi
remove_copyrmcrmc
any_ofanoano
nth_elementnthnth
sortsrtsrt
for_eachfrefre
assertassassert
protectedptprotected
classclsclass
boost_requirereqboost_requireboost
d+=d+=d+=
generategnrgnr
minmax_elementmmemme
partial_sort_copypscpsc
test casetctest casetesting
partition_pointpptppt
delete[]dladelete[]
enumenumenum
vectorvecvector
rotaterterte
-
-
-

c-lang-common

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
typedeftypedeftypedef
mathmathmath
#include "..."#include "..."inc.1
FILE *fp = fopen(..., ...);fopenfopen
ifdefifdefifdef
Function Doxygen Docdoxyfunction_doxygen_docdoxygen
#include <...>#include <...>inc
#ifndef XXX; #define XXX; #endifonceonce
mainmainmain
-
-
-

c-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
fgetsfgetsfgets
compilecompilecompile
defineddefine
printfprprintf
stdlibstdstdlib
stdioiostdio
unistduniunistd
.yas-parents
scanfscanfscanf
mallocmallocmalloc
packedpackedpacked
fprintffprintffprintf
unionunionunion
stringstrstring
assertassassert
strstrstrstrstrstr
-
-
-

cc-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
switch (...) { case : ... default: ...}switchswitch
printfprintfprintf
forforfor
if (...) { ... }ifif
Member description!<member_descriptiondoxygen
Function description\brieffunction_descriptiondoxygen
ternary?ternary
whilewhilewhile
File description\filefile_descriptiondoxygen
do { ... } while (...)dodo
for_nfornfor_n
else { ... }elseelse
case : {...}casecase
struct ... { ... }structstruct
-
-
-

chef-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
rolerolerole
http_requestphttp_requestphttp_requestp
pythonpythonpython
croncroncron
bashbashbash
templatevtemplatevtemplatev
rubyrubyruby
remote_fileremote_fileremote_file
deploydeploydeploy
providerproviderprovider
subscribessubscribessubscribes
actionactionaction
templatetemplatetemplate
pakpakpak
ignore_failureignore_failureignore_failure
envenvenv
logloglog
machinemachinemachine
cronfcronfcronf
retriesretriesretries
linklinklink
incincinc
notifiesnotifiesnotifies
http_requesthttp_requesthttp_request
metametameta
useruseruser
filefilefile
scriptscriptscript
supportssupportssupports
only_ifonly_ifonly_if
linkflinkflinkf
groupgroupgroup
pacpacpac
servicepservicepservicep
executefexecutefexecutef
serviceserviceservice
directoryfdirectoryfdirectoryf
directorydirectorydirectory
fileffileffilef
gitgitgit
cookbook_filecookbook_filecookbook_file
not_ifnot_ifnot_if
executeexecuteexecute
-
-
-

cider-repl-mode

- - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
.yas-parents
-
-
-

clojure-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
nsnsns
fnfnfn
ifliflifl
letletlet
bpbpbp
deftypedeftdeft
forforfor
defrecorddefrdefr
doseqdoseqdoseq
requirerequirerequire
ififif
trytrytry
.yas-parents
isisis
optsoptsopts
whenwhenwhen
printprintprint
defdefdef
whenlwhenlwhenl
mdocmdocmdoc
mapmapmap
benchbenchbench
testtesttest
importimportimport
defmacrodefmdefm
reducereducereduce
useuseuse
map lambdamapmap.lambda
defndefndefn
prprpr
-
-
-

cmake-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
foreachforforeach
functionfunfunction
add_librarylibadd_library
setsetset
macromacromacro
optionoptoption
ifelseififelse
ififif
projectprojproject
includeincinclude
add_executableexeadd_executable
cmake_minimum_requiredmincmake_minimum_required
messagemsgmessage
-
-
-

conf-unix-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
sectionsecsection
.yas-parents
-
-
-

cperl-mode

- - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
.yas-parents
-
-
-

cpp-omnet-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
parameter_omnetppparparameter_omnetpp
mathmathmath
scheduleAtschedscheduleAt
nannannan
EVevEV
uniformuniuniform
emit_signalemitemit_signal
intuniformintuniintuniform
omnetomnetomnet
-
-
-

csharp-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
property ... ... { ... }propprop
using System;usingusing.1
- /// - ... - commentcomment
.yas-parents
- /// - ... - commentcomment.3
using System....;usingusing.2
public void Method { ... }methodmethod
namespace .. { ... }namespacenamespace
using ...;usingusing
foreach { ... }forefore
private attribute ....; public property ... ... { ... }attribattrib.1
- /// - - ... - commentcomment.1
private attribute ....;attribattrib
- /// - - ... - commentcomment.2
#region ... #endregionregionregion
private _attribute ....; public Property ... ... { ... }attribattrib.2
mainmainmain
class ... { ... }classclass
-
-
-

css-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
margin-right: ...margin-right: ...mar.right
display: inlinedisplay: inlinedisp.inline
padding: top right bottom leftpadding: top right bottom leftpad.padding
background-image: ...background-image: ...bg.1
background-color: ...background-color: ...bg
font-size: ...font-size: ...fs
display: blockdisplay: blockdisp.block
border size style colorborder size style colorbor
margin top right bottom leftmargin top right bottom leftmar.margin
display: nonedisplay: nonedisp.none
padding-bottom: ...padding-bottom: ...pad.bottom
-vendor-prefix-vv
padding: ...padding: ...pad.pad
padding-right: ...padding-right: ...pad.right
margin-bottom: ...margin-bottom: ...mar.bottom
margin-top: ...margin-top: ...mar.top
margin-left: ...margin-left: ...mar.left
padding-top: ...padding-top: ...pad.top
padding-left: ...padding-left: ...pad.left
font-family: ...font-family: ...ff
margin: ...margin: ...mar.mar
clear: ...clear: ...cl
-
-
-

d-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
try … finally … tryftf
debugdebugdebug
debugmdebugmdebugm
if …ifif
method … { … }methodme
try … catch … finallytcftcf
while (…) { … }whilewhile
foreach (e ; …) { … }fefe
import …importim
unittest { … }unittestunit
foreach_reverse (e ; …) { … }ferfer
int main(string[] args) { … }mainmain
class … { … }classclass
if … elseifeife
return …returnr
try … catch …tctc
enum … { … } enumenum
version (ident) { … }versionversion
struct … { … }structstruct
-
-
-

dart-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
getsetgetsetgetset
implimplimpl
funcaafunfunca
forforfor
foriforifori
aclassaclsaclass
gettergetgetter
extextext
settersetsetter
funfunfunc
importimpimport
mainmainmain
classclsclass
partpartpart
-
-
-

dix-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
- - element - - pardef
- - wwith-param
-

element -

pp
- - elements - llit
- - elements - llet
- - elements - ootherwise
- - elements - ltlit-tag
- - - - elements - cchoose
-
- element -
- section
- - in monodix section - - e-in-mono-section
element - s
- - element - - par
- - elements - wwhen
- - in pardefs - - e-in-pardef
- - mcall-macro
- - element - - sdef
elementsvvar
- - elements - cclip
-
-
-

elixir-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
hcallhcallhcall
functiondfunfunction
ioioio
fnfnfn
defpdefpdefp
function-one-linedffunction-one-line
forforfor
ififif
hinfohinfohinfo
condcondcond
docdocdoc
receivercvreceive
.yas-parents
defmacropdefmacropdefmacrop
defmodule XXX enddmdefmodule_filename
defdefdef
defmacrodefmacrodefmacro
moduledocmdocmdoc
prypryprydebug
dododo
testtesttest
castcastcast
defmoduledefmoduledefmodule
callcallcall
if-elseifeife
casecasecase
iopiopiop
unlessunlessunless
hcasthcasthcast
afterafterafter
-
-
-

emacs-lisp-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
insert-file-contentsinsert-file-contentsinsert-file-contents
save-excursionsave-excursionsave-excursion
match-beginningmatch-beginningmatch-beginning
traversing a directorytraversing a directorytraverse_dir
string=string=string=
defundefdefun
arefarefaref
match-endmatch-endmatch-end
letletlet
read lines of a filex-filex-file.read-lines
region-endregion-endregion-end
shouldshshould
string-to-numberstring-to-numberstring-to-number
rename-filerename-filerename-file
find-filefind-filefind-file
delete-chardelete-chardelete-char
memqmemqmemq
fboundpfboundpfboundp
directory-filesdirectory-filesdirectory-files
grab buffer substringgrab buffer substringgrabstring
.read_me
file-relative-namefile-relative-namefile-relative-name
package headerheaderheader
delete-directorydelete-directorydelete-directory
file-name-sans-extensionfile-name-sans-extensionfile-name-sans-extension
file-name-extensionfile-name-extensionfile-name-extension
re-search-forwardre-search-forwardre-search-forward
defcustomdefcustomdefcustom
a function that process a filex-filex-file.process
make-local-variablemake-local-variablemake-local-variable
forward-lineforward-lineforward-line
grab buffer substringx-grabstringx-grabstring
skip-chars-backwardskip-chars-backwardskip-chars-backward
lambdalamlambda
make-directorymake-directorymake-directory
set-file-modesset-file-modesset-file-modes
a function that process a filea function that process a filefile.process
condition-casecondition-casecondition-case
kbdkbdkbd
defconstconstconst
condcondcond
notnotnot
buffer-file-namebuffer-file-namebuffer-file-name
search-backwardsearch-backwardsearch-backward
ert-deftestedtert-deftest
string-matchstring-matchstring-match
expand-file-nameexpand-file-nameexpand-file-name
use-packageupuse-package
mapcmapcmapc
andandand
add-hookadd-hookadd-hook
re-search-backwardre-search-backwardre-search-backward
buffer-substring-no-propertiesbuffer-substring-no-propertiesbuffer-substring-no-properties
global-set-keyglobal-set-keyglobal-set-key
whenwwhen
goto-chargoto-chargoto-char
search-backward-regexpsearch-backward-regexpsearch-backward-regexp
asetasetaset
region-beginningregion-beginningregion-beginning
ororor
copy-directorycopy-directorycopy-directory
line-end-positionline-end-positionline-end-position
replace-regexpreplace-regexpreplace-regexp
formatfformat
copy-filecopy-filecopy-file
line-beginning-positionline-beginning-positionline-beginning-position
autoloadautoloadautoload
find and replace on regionx-find-replacex-find-replace
word_regexp<word_regexp
buffer-substringbuffer-substringbuffer-substring
point-maxpoint-maxpoint-max
bounds-of-thing-at-pointbounds-of-thing-at-pointbounds-of-thing-at-point
beginning-of-linebeginning-of-linebeginning-of-line
search-forwardsearch-forwardsearch-forward
yes-or-no-pyonpyes-or-no-p
kill-bufferkill-bufferkill-buffer
interactiveinteractiveinteractive
set-bufferset-bufferset-buffer
insertinsertinsert
number-to-stringnumber-to-stringnumber-to-string
buffer-modified-pbuffer-modified-pbuffer-modified-p
with-current-bufferwith-current-bufferwith-current-buffer
search-forward-regexpsearch-forward-regexpsearch-forward-regexp
replace-regexp-in-stringreplace-regexp-in-stringreplace-regexp-in-string
pointpointpoint
backward-charbackward-charbackward-char
read lines of a fileread lines of a filefile.read-lines
define-keydefine-keydefine-key
match-stringmatch-stringmatch-string
widget-getwidget-getwidget-get
delete-regiondelete-regiondelete-region
process marked files in diredprocess marked files in direddired.process_marked
end-of-lineend-of-lineend-of-line
assqassqassq
Command that works on region or wordx-word-or-regionx-word-or-region
traversing a directoryx-traverse_dirx-traverse_dir
grab word under cursorx-grabthingx-grabthing
errorerrorerror
defaliasdefaliasdefalias
grab word under cursorgrab word under cursorgrabthing
putputput
split-stringsplit-stringsplit-string
Command that works on region or wordCommand that works on region or wordword-or-region
forward-charforward-charforward-char
nthnthnth
find and replace on regionfind and replace on regionfind-replace
custom-autoloadcustom-autoloadcustom-autoload
current-buffercurrent-buffercurrent-buffer
delete-filedelete-filedelete-file
region-active-pregion-active-pregion-active-p
looking-atlooking-atlooking-at
use-package bindingupbuse-package-binding
defvardefvardefvar
getgetget
minor_modeminorminor_mode
setqsetqsetq
skip-chars-forwardskip-chars-forwardskip-chars-forward
process marked files in diredx-diredx-dired.process_marked
save-buffersave-buffersave-buffer
point-minpoint-minpoint-min
vectorvectorvector
thing-at-pointthing-at-pointthing-at-point
set-markset-markset-mark
file-name-nondirectoryfile-name-nondirectoryfile-name-nondirectory
substringsubstringsubstring
messagemessagemessage
file-name-directoryfile-name-directoryfile-name-directory
-
-
-

enh-ruby-mode

- - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
.yas-parents
-
-
-

ensime-mode

- - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
.yas-parents
-
-
-

erc-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
helphhelp
blistbblist
-
-
-

erlang-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
loop(...) -> receive _ -> loop(...) end.loop(...) -> receive _ -> loop(...) end.loop
-include_lib("...").-include_lib("...").inc.lib
begin ... endbegin ... endbegin
-record(...,{...}).-record(...,{...}).rec
-compile(...).-compile(...).compile
if ... -> ... ; true -> ... endif ... -> ... ; true -> ... endif
-undef(...).-undef(...).undef
-behaviour(...).-behaviour(...).beh
try ... of ... catch after endtry ... of ... catch after endtry
fun (...) -> ... endfun (...) -> ... endfun
receive ... -> ... endreceive ... -> ... endrcv
-ifdef(...). ... -endif.-ifdef(...). ... -endif.ifdef
-include("...").-include("...").inc
-define(...,...).-define(...,...).def
-export([]).-export([]).exp
receive after ... -> ... endreceive after ... -> ... endrcv.after
-module().-module().mod
-import([]).-import([]).imp
case ... of ... endcase ... of ... endcase
after ... ->after ... ->after
-ifndef(...). ... -endif.-ifndef(...). ... -endif.ifndef
-
-
-

f90-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
function ... end function ...functionfunction
logicallogicall
intrinsicintrinsicintr
continuecontinuec
block datablock databd
where ... end where ...wherewhere
charactercharacterch
forall ... end forall ...forallforall
if then end ifif then end ifif
implicit noneimplicit nonein
subroutine .. end subroutinesubroutinesubroutine
program .. end programprogramprogram
pure subroutine .. end subroutinepure subroutinepures
module ... end module ...modulemodule
pure function ... end function ...pure funcpuref
includeincludeinc
until ... end until ...untiluntil
while ... end while ...whilewhile
read (*,*)read (*,*)re
parameterparameterpa
double precisiondouble precisiondp
double complexdouble complexdc
do ... end do ...dodo
write (*,*)write (*,*)wr
complexcomplexcx
-
-
-

faust-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
rulerurule
vbargraphvbvbargraph
sumsusum
declare licensedldeclarelicense
vgroupvgvgroup
buttonbubutton
hsliderhshslider
headerheheader
withwiwith
nentrynenentry
declare namedndeclarename
processprprocess
parpapar
seqseseq
declarededeclare
processxpxprocessx
hgrouphghgroup
declare versiondvdeclareversion
tgrouptgtgroup
checkboxchcheckbox
hbargraphhbhbargraph
declare authordadeclareauthor
importimimport
vslidervsvslider
componentcocomponent
prodmuprod
casecacase
-
-
-

git-commit-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
fixesfixfixes
.yas-parents
typetypetype
referencesrefreferences
-
-
-

go-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
switchswswitch
defaultdefdefault
const (...)constconst(
fmt.Printf(...)prprintf
forforfor
ififif
lambda funclambdalambda
import (...)impimport(
parallel_benchmarkparbenchparallel_benchmark
benchmarkbenchbenchmark
constconstconst
selectselselect
methodmthdmethod
debug fmt.Printfdddd
exampleexampleexample
funcfuncfunc
mapmapmap
varvarvar
typetypetype
var (...)varvar(
testattest
testmaintestmaintestmain
errorerrerror
importimpimport
if erroriferriferr
func main()mainmain
elseelelse
for rangerangeforrange
-
-
-

groovy-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
forforfor
.yas-parents
dictdictdict
defdefdef
timestimestimes
printlnprprintln
classclassclass
-
-
-

haskell-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
funfunfunction
instanceinsinstance
fixme dummyefixefix
funefunefunctione
docddoc
modulemodmodule
printprprint
datadadata
importimportimport
main functionmainmain
new classclassnew class
casecasecase
pragmapragpragma
-
-
-

html-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
form
Doctype HTML 5Doctype HTML 5doctype.html5
DocType XHTML 1.0 TransitionalDocType XHTML 1.0 Transitionaldoctype.xhtml1_transitional
Doctype HTML 4.01 StrictDoctype HTML 4.01 Strictdoctype
- - - - link.stylesheet-ie
DocType XHTML 1.0 StrictDocType XHTML 1.0 Strictdoctype.xhtml1_strict
script.javascript-src
-
...
-
-
...
-
dt
script.javascript
DocType XHTML 1.0 framesetDocType XHTML 1.0 framesetdoctype.xhtml1
.yas-parents
-
...
-
-
...
-
dl
- ... - ...th
- - - - meta.http-equiv
-
...
-
-
...
-
dd
- - - - meta
- ... - - ... - html
- ... - - ... - html.xmlns
......mailto
textarea
- - - - link.stylesheet
DocType XHTML 1.1DocType XHTML 1.1doctype.xhtml1_1
- - - - link.import
-
-
-

hy-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
req
letletlet
forforfor
if
cond
sss
when
defdefdef
do
ifn
defm
imp
main
class
unless
-
-
-

java-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
constructorcconstructor
assertEqualsaeassertEqualstest
define test methoddtdefine test method
toStringtoStrtoString
printfprintfprintf
this.this
forforfor
overrideooverride
ififif
lambda\lambda
equalseqequals
doc/*doc
newnewnew
trytrytry
foriforifori
file_classfilefile_class
getterggetter
methodmmethod
returnrreturn
testClasstctestClass
javadocdocjavadoc
main_classmain_classmain_class
iteratoriteratoriterator
testtesttest
importimpimport
clsclscls
printlnprprintln
paramparamparam
assertasassert
apr_assertapr_assertapr_assert
mainmainmain
valuevalvalue
ifeifeife
-
-
-

js-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
functionffunction
switchswswitch
alertalertal
Constructorinitinit
fireEventfireEventev.fire
let declarationletletes6
jsonjsonreq.json
forforfor
ififif
addEventaddEventev.add
const declarationconstconstes6
return-comment*@rreturn-comment
gettergetgetteres6
type-inline-comment*tytype-multiline-comment
methodmetmethodes6
console.logconsole.loglog
exportexpexportes6
multiline-comment/**multiline-comment
settersetsetteres6
Promiseprompromisees6
param-comment*@pparam-comment
type-inline-comment@tytype-inline-comment
try...catch statementtrytry-catch
eacheacheach
elseelseel
init-es6initinit-es6es6
importimpimportes6
debuggerdbgdebugger
import memberimmimport-memberes6
ClassClassclass
class-es6classclass-es6es6
comment (/* ... */)comment (/* ... */)com
arrow functionafarrow-functiones6
htmlhtmlreq.html
-
-
-

js2-mode

- - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
.yas-parents
-
-
-

js3-mode

- - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
.yas-parents
-
-
-

kotlin-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
Iterate over elements of iterable (for-in) loopiteriter
Function returning nothingvoidvoid
Anonymous classobjectanonymous
Extension read-write propertyexvarexvar
Singletonsingletonsingleton
Prints a string to System.outsoutsout
Inserts 'if not null' expressioninninn
Closure (function without name)closureclosure
Extension functionexfunexfun
Extension read-only propertyexvalexval
Function with no parametersfun0fun
Prints a value to System.outsoutvsoutv
psvmpsvmpsvm
Inserts 'if null' expressionifnifn
main() functionmainmain
Prints a string to System.errserrserr
Interfaceinterfaceinterface
-
-
-

latex-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
subsecsubsubsec
empheemph
beginbeginbegin
sumsumsum
item-item
pythonpypython
notenonote
moderncv-cvlistitemcvitemmoderncv-cvlistitem
columnscolscolumns
figurefigfigure
captioncacaption
full template of moderncv classmoderncvmoderncv
subfiguresubfigsubfigure
ififif
binombinombinom
textbfbtextbf
moderncv-cvlistdoubleitemcvditemmoderncv-cvlistdoubleitem
acronymacacronym
sectionsecsection
blockblblock
algalgalg
moderncv-cvlanguagecvlangmoderncv-cvlanguage
usepackagepkgusepackage
bigcapbigcapbigcap
glsggls
listinglstlisting
citeccite
moviemoviemovie
glsplgpglspl
GlsGcapgls
framefrframe
intintint
itemizeititemize
newcommandcmdnewcommand
documentclassdocdocumentclass
includegraphicsigincludegraphics
moderncv-cvlinecvlinemoderncv-cvline
codecodecode
bigcupbigcupbigcup
newglossaryentryglnewglossaryentry
questionqquestion
labellablabel
fracfracfrac
full template of article classarticlearticle
moderncv-cventrycventrymoderncv-cventry
moderncv-cvcomputercvcompmoderncv-cvcomputer
alertblockalalertblock
subfsfsubf
enumerateenumenumerate
prodprodprod
descriptiondescdescription
-
-
-

lisp-interaction-mode

- - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
defundefundefun
-
-
-

lisp-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
doforeachforeach
switchswitchswitch
ifelse (...) (...) (...) ...ifelseifelse
doforfor
ififif
slotslotslot
comment/*comment
typecasttypecasttypecast
defpackagedefpdefpackage
ifnot (...) (...) ...ifnotifnot
formatprintformat
dododo
classclsclass
-
-
-

lua-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
if elseif elseeifeeife
requirerequirerequire
for in ipairsipairsipairs
ififif
repeat utilrepeatrepeat
funfunfun
if elseifeifeif
whilewhilewhile
for in pairspairspairs
dododo
if elseifeife
-
-
-

m4-mode

- - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
defdefdef
-
-
-

makefile-automake-mode

- - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
noinst_HEADERSnoinstnoinst_HEADERS
-
-
-

makefile-bsdmake-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
gengengen
echoechoecho
ififif
PHONYphonyPHONY
var$var
-
-
-

makefile-gmake-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
abspathabsabspath
makemakemake
phonyphphony
templatetemplatetemplate
shellshshell
notdirndnotdir
special targets.special
dirddir
addprefixapaddprefix
addsuffixasaddsuffix
patsubstpspatsubst
wildcardwlwildcard
-
-
-

makefile-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
allallall
cleanclclean
-
-
-

malabar-mode

- - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
variablevarvariable
-
-
-

markdown-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
Header 1 (=)h1h1.2
Horizontal Rule (-)hrhr.1
Imageimgimg
Reference Linkrlinkrlink
Horizontal Rule (*)hrhr.2
Reference Labelrlbrlb
Strong emphasis__strong-emphasis
UTF-8 encodingutf8utf8
Emphasis_emphasis
Ordered Listolordered-list
Unordered List-hyphen
Linklinklink
Header 6h6h6
Header 1 (#)h1h1.1
Code blockcodecode
Highlighthighlighthighlight
Referenced Imagerimgrimg
Header 3h3h3
Header 5h5h5
Inline Code`back-quote
Header 2 (-)h2h2.2
Unordered List+plus
Header 4h4h4
Header 2 (##)h2h2.1
-
-
-

nasm-mode

- - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
Assembly Function Docdoxyfunction_doxygen_doc
-
-
-

ned-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
connectionsconnconnections
simplesimplesimple
forforfor
networknetnetwork
.yas-parents
chanchanchan
submodulessubsubmodules
importimpimport
-
-
-

nesc-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
dbgdbgdbg
providesprovidesprovides
nxnxnx
modulemodmodule
.yas-parents
ifdefifdefifdef
simsimsim
uint8_tu8uint8_t
commandcommandcommand
usesusesuses
TOSSIMtossimTOSSIM
eventeventevent
interfaceintinterface
-
-
-

nix-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
callPackagecacallPackage
installCheckPhaseicinstallCheckPhase
installPhaseipinstallPhase
checkPhasechcheckPhase
buildPhasebpbuildPhase
phasesphphases
configurePhasecpconfigurePhase
distPhasedpdistPhase
fixupPhasefpfixupPhase
unpackPhaseupunpackPhase
patchPhasepppatchPhase
package urlpupackage_url
-
-
-

nsis-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
functionfunfunction
macromacromacro
definedefdefine
outdir$outdir
ififif
instdir$instdir
sectionsecsection
.yas-parents
insert_macroiminsert_macro
includeincinclude
outfileoutoutfile
messagemsgmessage
-
-
-

nxml-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
form
......img
- ... - ttag
DocType XHTML 1.1DocType XHTML 1.1doctype
...ahref
DocType XHTML 1.0 TransitionalDocType XHTML 1.0 Transitionaldoctype_xhtml1_transitional
- - - - style
input
- \n...\n - tntag_newline
- - - - link
- - - - meta
name
- ... - - ... - html
- - ttag_closing
- ... - - ...body


br
...
...
quote
DocType XHTML 1.0 StrictDocType XHTML 1.0 Strictdoctype_xhtml1_strict
-
-

octave-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
functionfunfunction
forforfor
ififif
-
-
-

org-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
imgimg_img
embeddedemb_embedded
links - links
pythonpy_python
matrixmatrix_matrix
verse - verse
style - style
figurefig_figure
Title - title
ipythonipy_ipython
umlumluml
elispelisp_elisp
entryentry_entry
images - images
export - export
setupsetsetup
email - email
HTML - html
center - center
include - include
videos - videos
language - language
reveal_single_colored_background - rv_background
example - exampleblock
quote - quote
keywords - keywords
options - options
table - table
reveal_image_background - rv_image_background
date - date
author - author
descriptiondescdescription
dotdot_dot
-
-
-

perl-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
for (...) { ... }forfor
if (...) { ... }ifif
sub ... { ... }subsub
.yas-parents
... while ...xwhilexwhile
eval { ... } if ($@) { ... }evaleval
if, elsif, else ...ifeeifee
... foreach ...xforexfore
foreach ... { ... }forefore
while (...) { ... }whilewhile
... if ...xifxif
... unless ...xunlessxunless
if (...) { ... } else { ... }ifeife
unless (...) { ... }unlessunless
-
-
-

php-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
foreachforeachforeach
PHPDoc @license GPLv2*license-gplv2license-doc-gplv2annotation
function statementfunctionfunctiondefinitions
.yas-setup.el
switchswitchswitch
__callStatic()__callStatic__callStaticMagic Methods
setsetsetdefinitions
PHPDoc @property*propertyproperty-docannotation
PHPDoc: var*varvar-docdefinitions
function expr (closure)fnfndefinitions
definedefinedefinedefinitions
catchcatchcatch
PHPDoc (multi-line)/**doc-comment-multilineannotation
var_dump() exitvdevdegeneric
fwrite(STDOUT)stdoutstdoutgeneric
ififif
PHPDoc @license Apache License*license-apachelicense-doc-apacheannotation
Doc comment (one-line)*doc-comment-onelineannotation
constconstconstdefinitions
declare(ticks=)ticksticksdefinitions
trytrytry
var_export()vevegeneric
__call()__call__callMagic Methods
PHPDoc @property*propertymethod-docannotation
PHPDoc: @var (one-line)@varvar-onelinedefinitions
foreach (array as $key => $value)foreach=>foreach_value
function :typefunction:function-return-type
traittraittrait
PHPDoc @return*returnreturn-docannotation
var_dump()vdvdgeneric
class implementsclsiclsidefinitions
PHPDoc @license MIT*license-mitlicense-doc-mitannotation
PHPDoc @param*paramparam-docannotation
classclsclsdefinitions
PHPDoc @license MPL*license-mpllicense-doc-mplannotation
getgetgetdefinitions
elseelseelsecontrol structure
psyshpsyshpsyshgeneric
class extendsclseclsedefinitions
interfaceinterfaceinterface
elseifelseifelseif
PHPDoc @license*licenselicense-docannotation
-
-
-

powershell-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
functionfunfunction
parameterparparameter
comment-based-helpcbhcomment-based-help
cmdletbindingcmdcmdletbinding
-
-
-

prog-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
.yas-setup.el
commentcocomment
commentlinecolcommentline
xxxxxxx
todottodo
fixmefifixme
commentblockcobcommentblock
-
-
-

protobuf-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
syntaxsynsyntax
messagemsgmessage
-
-
-

python-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
__iter__iteriterdunder methods
proppropprop
functionffunctiondefinitions
.yas-setup.el
not_implnot_implnot_impl
assertEqualaeassertEqualtesting
fromfromfrom
initinitinit
setdefsetdefsetdef
decdecdec
#!#!bang
parse_argspargsparse_argsargparser
staticsmstatic
ifmainifmifmain
logger_namelnlogger_name
loggingloglogging
tryelsetrytryelse
allallall
for ... in ... : ...forfor
subclasssclssclsobject oriented
__getitem__getit__getitem__dunder methods
__len__len__len__dunder methods
ififif
lambdalamlambda
celery pdbcdbcelery_pdbdebug
withwithwith
test_classtcstest_class
django_test_classtcsdjango_test_classtesting
assetNotInanassertNotIntesting
docddoc
utf-8 encodingutf8utf8
trytrytry
__exit__ex__exit__dunder methods
.yas-parents
assertInaiassertIntesting
function_docstring_numpyfdnfunction_docstring_numpydefinitions
deftestdtdeftesttesting
methodmmethodobject oriented
self_without_dotsself_without_dotobject oriented
supersupersuperobject oriented
assertNotEqualaneassertNotEqualtesting
listlilist
argargargargparser
setupsetupsetupdistribute
Function Doxygen Docdoxy_funcfunction_doxygen_docdoxygen
selfassignsnselfassignobject oriented
metaclassmtmetaclassobject oriented
assertTrueatassertTruetesting
returnrreturn
printpprint
npnpnp
whilewhwhilecontrol structure
Class Doxygen Docdoxy_classclass_doxygen_docdoxygen
passpspass
with_statementfwwith_statementfuture
__unicode__ununicodedunder methods
Import pyplotpltpl
scriptscriptscript
assertRaisesarassertRaises.with
__str__strstrdunder methods
classmethodcmclassmethodobject oriented
test_filetftest_file
embedembedembed
__new__new__new__dunder methods
assertRaisesarassertRaisestesting
__setitem__setit__setitem__dunder methods
parserparsparserargparser
assertFalseafassertFalsetesting
arg_positionalargarg_positionalargparser
function_docstringfdfunction_docstringdefinitions
tracetrtracedebug
method_docstringmdmethod_docstringobject oriented
__repr__reprreprdunder methods
regregreg
doctestdocdoctesttesting
importimpimport
classclsclsobject oriented
assertassasserttesting
init_docstringidinit_docstring
mainmainmain
ifeifeife
sizesizesize
__contains__cont__contains__dunder methods
interactintinteract
ipdb traceitripdbdebugdebug
__eq__eqeqdunder methods
enumenenumobject oriented
unicode_literalsfuunicode_literalsfuture
self.selfobject oriented
dataclassdcdataclassobject oriented
__enter__ent__enter__dunder methods
-
-
-

racket-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
(let... ([... ...]...) ...)letlet
(define ... ...)definedefine
(for... (...) ...)forfor
(if ... ... ...)ifif
(lambda (...) ...)lambdalambda
(case-lambda [... ...]...)case-lambdacaselambda
(cond [... ...]...)condcond
(when ...)whenwhen
(do ([... ... ...]...) (... ...) ...)dodo
(match ... [... ...]...)matchmatch
(case ... [... ...]...)casecase
(unless ...)unlessunless
-
-
-

rst-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
functionfunfunction
termtermterm
autoclassautoautoclass
inheritanceinhinheritance
parsed_literalsrcparsed_literal
Chapter titlechapchapter
Document titletittitle
pausepausepausehieroglyph
verbatim|verbatim
Section titlesecsection
modulemodmodule
literatal includeincliteral_include
warningwarnwarning
imageimgimage
graphvizgraphgraphviz
digraphgraphdigraph
automoduleautoautomodule
meta:meta
autofunctionautoautofunction
graphgraphgraph
urlurlurl
codecodecode
classclsclass
-
-
-

ruby-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
inject(...) { |...| ... }inject(...) { |...| ... }inject
require "..."require "..."req
:yields: arguments (rdoc):yields: arguments (rdoc)y
each_with_index { |e, i| ... }each_with_index { |e, i| ... }eawi
initinitinit
zip(...) { |...| ... }zip(...) { |...| ... }zip
each_cons(...) { |...| ... }each_cons(...) { |...| ... }eac
delete_if { |...| ... }delete_if { |...| ... }deli
deep_copy(...)deep_copy(...)dee
formulaformformula
times { |n| ... }times { |n| ... }tim
include Comparable; def <=> ... endinclude Comparable; def <=> ... endComp
all? { |...| ... }all? { |...| ... }all
forforfor
attribute@attribute
if ... endif ... endif
attr_accessor ...attr_accessor ...rw
attr_writer ...attr_writer ...w
detect { |...| ... }detect { |...| ... }det
select { |...| ... }select { |...| ... }select
reject { |...| ... }reject { |...| ... }reject
class << self ... endclass << self ... endcla
any? { |...| ... }any? { |...| ... }any
collect { |...| ... }collect { |...| ... }collect
if __FILE__ == $PROGRAM_NAME ... endif __FILE__ == $PROGRAM_NAME ... endapp
=begin rdoc ... =end=begin rdoc ... =end=b
test classtctest class
when ... endwhen ... endwhen
require_relativerequire_relativerel
include Moduleincincgeneral
until ... enduntil ... enduntilcontrol structure
tututu
def ... enddefdef
alias_method new, oldalias_method new, oldam
Benchmark.bmbm(...) do ... endBenchmark.bmbm(...) do ... endbm
while ... endwhile ... endwhile
upto(...) { |n| ... }upto(...) { |n| ... }upt
/usr/bin/ruby -wU/usr/bin/ruby -wUrb
reduce(...) { |...| ... }reduce(...) { |...| ... }red
each_value { |val| ... }each_value { |val| ... }eav
strsstr
include EnumerableEnumEnumcollections
GLOB$GLOB
binding.pryprypry
map { |...| ... }map { |...| ... }map
each_index { |i| ... }each_index { |i| ... }eai
# =># =>#
to_to_to_
benchbenchbench
def method_missing ... enddef method_missing ... endmm
class ... endclass ... endcls
each { |...| ... }each { |...| ... }ea
downto(...) { |n| ... }downto(...) { |n| ... }dow
module ... endmodmod
for ... in ...; ... endfor ... in ...; ... endforin
binding.pry_remoterpryrpry
if ... else ... endif ... else ... endife
case ... endcase ... endcase
attr_reader ...attr_reader ...r
-
-
-

rust-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
let mut pattern: type = expression;lettmlettm
loop { ... }looploop
- impl From - - for Type { fn from(...) } - fromfrom
impl Type { ... }implimpl
#![deny(lint)]deny!deny!
macro_rules! name { (..) => (..); }macromacro
let mut pattern = expression;letmletm
CONSTANT: Type = value;staticstatic
fn name() { ... }fnfn
if let pattern = expression { ... };iflifl
let pattern = expression;letlet
#[deny(lint)]denydeny
let pattern: type = expression;lettlett
test moduletestmodtestmod
for var in iterable { ... }forfor
closure||closure
impl FromStr for Type { fn from_str(...) }fromstrfromstr
if expr { ... }ifif
while let pattern = expression { ... }whilelwhilel
#[cfg(option)]cfgcfg
#![allow(lint)]allow!allow!
fn main() { ... }newnew
pub fn name(&self) -> Type;pfnspfns
impl Trait for Type { ... }impltimplt
eprint!("{}", value);eprinteprint
pub fn name() { ... }pfnpfn
#![warn(lint)]warn!warn!
assert_eq!(expected, actual);asseqasserteq
print!("{}", value);printprint
trait Type { ... }traittrait
#[cfg(option = "value")]cfg=cfg=
while expression { ... }whilewhile
- pub fn name - - (x: T) where T: Clone { ... } - pfnwpfnw
spawn(proc() { ... });spawnspawn
union Type { ... }unionunion
Resultresultresult
- fn name - - (x: T) where T: Clone { ... } - fnwfnw
fn name(&self) -> Type;fnsfns
extern crateeccrate
impl Drop for Type { fn drop(...) }dropdrop
#[warn(lint)]warnwarn
eprintln!("{}", value);eprintlneprintln
type TypeName = TypeName;typetype
#[test] fn test_name() { .. }testtest
impl Display for Type { fn fmt (...) }displaydisplay
fn name() -> Type { ... }fnrfnr
println!("{}", value);printlnprintln
#[derive(Trait)]derivederive
pub fn name() -> Type { ... }pfnrpfnr
assert!(predicate);assassert
match expression { ... }matchmatch
fn main() { ... }mainmain
if expression { ... } else { .. }ifeife
pattern => expression,casecase
#[allow(lint)]allowallow
enum Type { ... }enumenum
struct TypeName { .. }structstruct
-
-
-

scala-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
case class T(arg: A)cccc
List(..)lsls
value classvcvalueclass
for { x <- xs } yieldforfor
if (cond) { .. }ifif
/** ... */docdoc
try { .. } catch { case e => ..}trytry
object name extends Appappapp
def f(arg: T): R = {...}defdef
throw new Exceptionthrowthrow
docstring functiondocfundocfun
case object Tcoco
element1 :: element2conscons
cc match { .. }matchmatch
def main(args: Array[String]) = { ... }mainmain
case pattern => casecase
object name extends Tobob
-
-
-

sh-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
functionffunction
for loopforfor loop
bang!bang
ififif
until loopuntiluntil
while loopwhilewhile
safer bash settings for scriptss!safe-bang
ifeifeife
argsargs
-
-
-

snippet-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
elisp`elisp
${ ... } field$ffield
groupgroupgroup
${n:$(...)} mirror$mmirror
Snippet headervarsvars
contcontcont
-
-
-

snippets

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
prop-getsetprop-getsetprop
uiViewControllerLifecycleuiViewControllerLifecycleuiviewcontrollerlifecycle
forcaseforcaseforcase
checkversioncheckversioncheckversion
letletlet
documentDirectorydocumentDirectorydocumentdirectory
dispatchAsyncdispatchAsyncdispatchasync
availableavailableavailable
if (...) { ... }ifif
uiCollectionViewDelegateuiCollectionViewDelegateuicollectionviewdelegate
foriforifori
uitableViewDataSourceuitableViewDataSourceuitableviewdatasource
trycatchtrycatchtrycatch
uiTableViewDelegateuitableViewDelegateuitableviewdelegate
uialertControlleruialertControlleruialertcontroller
markmarkmark
initcoderinitcoderinitcoder
whilewhilewhile
sortarrayofstringssortarrayofstringssortarrayofstrings
uicollectionViewDataSourceuicollectionViewDataSourceuicollectionviewdatasource
funcfuncfunc
dispatchAfterdispatchAfterdispatchafter
varvarvar
dispatchMaindispatchMaindispatchmain
(let... ([... ...]...) ...)letlet
(define ... ...)definedefine
(for... (...) ...)forfor
(if ... ... ...)ifif
(lambda (...) ...)lambdalambda
(case-lambda [... ...]...)case-lambdacaselambda
(cond [... ...]...)condcond
(when ...)whenwhen
(do ([... ... ...]...) (... ...) ...)dodo
(match ... [... ...]...)matchmatch
(case ... [... ...]...)casecase
(unless ...)unlessunless
functionfunfunction
forforfor
ififif
if elseif elseeifeeife
requirerequirerequire
for in ipairsipairsipairs
ififif
repeat utilrepeatrepeat
funfunfun
if elseifeifeif
whilewhilewhile
for in pairspairspairs
dododo
if elseifeife
.yas-setup.el
techreporttechreporttechreport
masterthesismasterthesismasterthesis
bookletbookletbooklet
unpublishedunpublishedunpublished
bookbookbook
manualmanualmanual
incollectionincollectionincollection
inbookinbookinbook
phdthesisphdthesisphdthesis
conferenceconferenceconference
articlearticlearticle
inproceedingsinproceedingsinproceedings
proceedingsproceedingsproceedings
miscmiscmisc
ifthenififthen
letletlet
recrecrec
printfprprintf
forforfor
list_comprehensionllist_comprehension
type_typetypetype_type
trytrytry
funfunfun
modulemodmodule
whilewhwhile
guard|guard
valvalval
openopopen
docstringddocstring
type_recordtypetype
assertasassert
matchmatchmatch
mainmmain
ifthenelseififthenelse
coutstosto
.yas-setup.el
removermvrmv
operator<<<<operator_ostreamoperator overloading
ioioio
d_operator<<<<d_operator_ostream
constructorctconstructor
fillfilfil
namespace ...nsns
all_ofaloalo
remove_copy_ifrmfrmf
deletedldelete
mismatchmsmmsm
generate_ntrmtrm
find_if_notfinfin
iotaitaita
string to lower caselwrlwr
sort_heapsthsth
ignoreignoreignore
equaleqleql
countcntcnt
findfndfnd
rotate_copyrtcrtc
is_heapihpihp
search_nsrnsrn
publicpbpublic
member_functionmfmember_function
v.begin(), v.end()beginendbeginend
partition_copyptcptc
is_sorted_untilisuisu
cincincin
copy_backwardcpbcpb
push_heapphhphh
move_backwardmpbmpb
thisththis
count_ifcnicni
test_suitetstest_suitetesting
swap_rangesswrswr
adjacent_findajfajf
random_shuffleshfshf
operator====operator==operator overloading
privateprprivate
fill_nflnfln
prev_permutationprpprp
next_permutationnxpnxp
friendfrfriend
replace_copy_ifrcirci
reverservrrvr
make_heapmkhmkh
templatetemptemplate
operator==operator=operator overloading
docdocdoc
std::ststd_colon
dynamic_castingcastdynamic_casting
unique_copyucpucp
uniqueuqeuqe
accumulateaclacl
inlineilinline
partitionptnptn
trytrytry
copycpycpy
foriforifori
modulemodmodule
.yas-parents
find_first_offfoffo
operator!=!=operator!=operator overloading
cinstisti
transformtfmtfm
vectorstvstv
min_elementmnemne
stdstdstd
cppcppcpp
fun_declarationffun_declaration
is_heap_untilihuihu
namespacensnamespace
cerrerrcerr
using namespace ... usingusing
find_iffnifni
replacerplrpl
copy_ifcpicpi
ostreamosostream
d_operator[][d_operator[]
cstdcstdcstd
generate_ngnngnn
gtestgtestgtesttesting
d_operator[]_constc[d_operator[]_const
copyoitoit
coutcoutcout
throwthrowthrow
packpackpack
strstrstr
remove whitespace at beginningltrltr
class11cls11class11c++11Snippet for C++11 classes based on c++-mode/class. Allows for Rule of
test_maintest_maintest_maintesting
max_elementmxemxe
copy_ncpncpn
d_operator<<<<d_operator
removeermerm
find_endfnefne
trywtrywtryw
none_ofnnonno
reverse_copyrvcrvc
mapmapmap
mergemrgmrg
fixturefixtfixture
searchsrhsrh
lexigraphical_comparelxclxc
is_permutationipripr
partial_sortpstpst
operator++operator+operator overloading
const_[]c[const_[]
stable_sortstssts
operator>>>>operator_istreamoperator overloading
stable_partitionsptspt
iteratoriteriterator
operator+=+=operator+=operator overloading
accumulateacmacm
transformuprupr
replace_copyrpcrpc
d_operator>>>>d_operator_istream
is_sortedississ
is_partitionediptipt
remove_ifrmirmi
- - sssstream
operator[][]operator[]operator overloading
replace_ifrpirpi
remove_copyrmcrmc
any_ofanoano
nth_elementnthnth
sortsrtsrt
for_eachfrefre
assertassassert
protectedptprotected
classclsclass
boost_requirereqboost_requireboost
d+=d+=d+=
generategnrgnr
minmax_elementmmemme
partial_sort_copypscpsc
test casetctest casetesting
partition_pointpptppt
delete[]dladelete[]
enumenumenum
vectorvecvector
rotaterterte
form
Doctype HTML 5Doctype HTML 5doctype.html5
DocType XHTML 1.0 TransitionalDocType XHTML 1.0 Transitionaldoctype.xhtml1_transitional
Doctype HTML 4.01 StrictDoctype HTML 4.01 Strictdoctype
- - - - link.stylesheet-ie
DocType XHTML 1.0 StrictDocType XHTML 1.0 Strictdoctype.xhtml1_strict
script.javascript-src
-
...
-
-
...
-
dt
script.javascript
DocType XHTML 1.0 framesetDocType XHTML 1.0 framesetdoctype.xhtml1
.yas-parents
-
...
-
-
...
-
dl
- ... - ...th
- - - - meta.http-equiv
-
...
-
-
...
-
dd
- - - - meta
- ... - - ... - html
- ... - - ... - html.xmlns
......mailto
textarea
- - - - link.stylesheet
DocType XHTML 1.1DocType XHTML 1.1doctype.xhtml1_1
- - - - link.import
functionfunfunction
macromacromacro
definedefdefine
outdir$outdir
ififif
instdir$instdir
sectionsecsection
.yas-parents
insert_macroiminsert_macro
includeincinclude
outfileoutoutfile
messagemsgmessage
syntaxsynsyntax
messagemsgmessage
functionfunfunction
parameterparparameter
comment-based-helpcbhcomment-based-help
cmdletbindingcmdcmdletbinding
abspathabsabspath
makemakemake
phonyphphony
templatetemplatetemplate
shellshshell
notdirndnotdir
special targets.special
dirddir
addprefixapaddprefix
addsuffixasaddsuffix
patsubstpspatsubst
wildcardwlwildcard
helphhelp
blistbblist
sectionsecsection
.yas-parents
case class T(arg: A)cccc
List(..)lsls
value classvcvalueclass
for { x <- xs } yieldforfor
if (cond) { .. }ifif
/** ... */docdoc
try { .. } catch { case e => ..}trytry
object name extends Appappapp
def f(arg: T): R = {...}defdef
throw new Exceptionthrowthrow
docstring functiondocfundocfun
case object Tcoco
element1 :: element2conscons
cc match { .. }matchmatch
def main(args: Array[String]) = { ... }mainmain
case pattern => casecase
object name extends Tobob
repeat-untilrepeat-untilrepeat-until
ignoringignoringignoring
tell-application-to-activatetell-application-to-activatetell-application-to-activate
with-transactionwith-transactionwith-transaction
with-timeout-of-secondswith-timeout-of-secondswith-timeout-of-seconds
consideringconsideringconsidering
ononon
ififif
commentcommentcomment
repeat-withrepeat-withrepeat-with
repeatrepeatrepeat
trytrytry
.yas-parents
display-dialogdisplay-dialogdisplay-dialog
using-terms-from-applicationusing-terms-from-applicationusing-terms-from-application
ignoring-application-responsesignoring-application-responsesignoring-application-responses
considering-application-responsesconsidering-application-responsesconsidering-application-responses
tell-applicationtell-applicationtell-application
repeat-whilerepeat-whilerepeat-while
doforeachforeach
switchswitchswitch
ifelse (...) (...) (...) ...ifelseifelse
doforfor
ififif
slotslotslot
comment/*comment
typecasttypecasttypecast
defpackagedefpdefpackage
ifnot (...) (...) ...ifnotifnot
formatprintformat
dododo
classclsclass
connectionsconnconnections
simplesimplesimple
forforfor
networknetnetwork
.yas-parents
chanchanchan
submodulessubsubmodules
importimpimport
noinst_HEADERSnoinstnoinst_HEADERS
hcallhcallhcall
functiondfunfunction
ioioio
fnfnfn
defpdefpdefp
function-one-linedffunction-one-line
forforfor
ififif
hinfohinfohinfo
condcondcond
docdocdoc
receivercvreceive
.yas-parents
defmacropdefmacropdefmacrop
defmodule XXX enddmdefmodule_filename
defdefdef
defmacrodefmacrodefmacro
moduledocmdocmdoc
prypryprydebug
dododo
testtesttest
castcastcast
defmoduledefmoduledefmodule
callcallcall
if-elseifeife
casecasecase
iopiopiop
unlessunlessunless
hcasthcasthcast
afterafterafter
constructorcconstructor
assertEqualsaeassertEqualstest
define test methoddtdefine test method
toStringtoStrtoString
printfprintfprintf
this.this
forforfor
overrideooverride
ififif
lambda\lambda
equalseqequals
doc/*doc
newnewnew
trytrytry
foriforifori
file_classfilefile_class
getterggetter
methodmmethod
returnrreturn
testClasstctestClass
javadocdocjavadoc
main_classmain_classmain_class
iteratoriteratoriterator
testtesttest
importimpimport
clsclscls
printlnprprintln
paramparamparam
assertasassert
apr_assertapr_assertapr_assert
mainmainmain
valuevalvalue
ifeifeife
.yas-parents
functionfunfunction
termtermterm
autoclassautoautoclass
inheritanceinhinheritance
parsed_literalsrcparsed_literal
Chapter titlechapchapter
Document titletittitle
pausepausepausehieroglyph
verbatim|verbatim
Section titlesecsection
modulemodmodule
literatal includeincliteral_include
warningwarnwarning
imageimgimage
graphvizgraphgraphviz
digraphgraphdigraph
automoduleautoautomodule
meta:meta
autofunctionautoautofunction
graphgraphgraph
urlurlurl
codecodecode
classclsclass
let mut pattern: type = expression;lettmlettm
loop { ... }looploop
- impl From - - for Type { fn from(...) } - fromfrom
impl Type { ... }implimpl
#![deny(lint)]deny!deny!
macro_rules! name { (..) => (..); }macromacro
let mut pattern = expression;letmletm
CONSTANT: Type = value;staticstatic
fn name() { ... }fnfn
if let pattern = expression { ... };iflifl
let pattern = expression;letlet
#[deny(lint)]denydeny
let pattern: type = expression;lettlett
test moduletestmodtestmod
for var in iterable { ... }forfor
closure||closure
impl FromStr for Type { fn from_str(...) }fromstrfromstr
if expr { ... }ifif
while let pattern = expression { ... }whilelwhilel
#[cfg(option)]cfgcfg
#![allow(lint)]allow!allow!
fn main() { ... }newnew
pub fn name(&self) -> Type;pfnspfns
impl Trait for Type { ... }impltimplt
eprint!("{}", value);eprinteprint
pub fn name() { ... }pfnpfn
#![warn(lint)]warn!warn!
assert_eq!(expected, actual);asseqasserteq
print!("{}", value);printprint
trait Type { ... }traittrait
#[cfg(option = "value")]cfg=cfg=
while expression { ... }whilewhile
- pub fn name - - (x: T) where T: Clone { ... } - pfnwpfnw
spawn(proc() { ... });spawnspawn
union Type { ... }unionunion
Resultresultresult
- fn name - - (x: T) where T: Clone { ... } - fnwfnw
fn name(&self) -> Type;fnsfns
extern crateeccrate
impl Drop for Type { fn drop(...) }dropdrop
#[warn(lint)]warnwarn
eprintln!("{}", value);eprintlneprintln
type TypeName = TypeName;typetype
#[test] fn test_name() { .. }testtest
impl Display for Type { fn fmt (...) }displaydisplay
fn name() -> Type { ... }fnrfnr
println!("{}", value);printlnprintln
#[derive(Trait)]derivederive
pub fn name() -> Type { ... }pfnrpfnr
assert!(predicate);assassert
match expression { ... }matchmatch
fn main() { ... }mainmain
if expression { ... } else { .. }ifeife
pattern => expression,casecase
#[allow(lint)]allowallow
enum Type { ... }enumenum
struct TypeName { .. }structstruct
rolerolerole
http_requestphttp_requestphttp_requestp
pythonpythonpython
croncroncron
bashbashbash
templatevtemplatevtemplatev
rubyrubyruby
remote_fileremote_fileremote_file
deploydeploydeploy
providerproviderprovider
subscribessubscribessubscribes
actionactionaction
templatetemplatetemplate
pakpakpak
ignore_failureignore_failureignore_failure
envenvenv
logloglog
machinemachinemachine
cronfcronfcronf
retriesretriesretries
linklinklink
incincinc
notifiesnotifiesnotifies
http_requesthttp_requesthttp_request
metametameta
useruseruser
filefilefile
scriptscriptscript
supportssupportssupports
only_ifonly_ifonly_if
linkflinkflinkf
groupgroupgroup
pacpacpac
servicepservicepservicep
executefexecutefexecutef
serviceserviceservice
directoryfdirectoryfdirectoryf
directorydirectorydirectory
fileffileffilef
gitgitgit
cookbook_filecookbook_filecookbook_file
not_ifnot_ifnot_if
executeexecuteexecute
nsnsns
fnfnfn
ifliflifl
letletlet
bpbpbp
deftypedeftdeft
forforfor
defrecorddefrdefr
doseqdoseqdoseq
requirerequirerequire
ififif
trytrytry
.yas-parents
isisis
optsoptsopts
whenwhenwhen
printprintprint
defdefdef
whenlwhenlwhenl
mdocmdocmdoc
mapmapmap
benchbenchbench
testtesttest
importimportimport
defmacrodefmdefm
reducereducereduce
useuseuse
map lambdamapmap.lambda
defndefndefn
prprpr
form
......img
- ... - ttag
DocType XHTML 1.1DocType XHTML 1.1doctype
...ahref
DocType XHTML 1.0 TransitionalDocType XHTML 1.0 Transitionaldoctype_xhtml1_transitional
- - - - style
input
- \n...\n - tntag_newline
- - - - link
- - - - meta
name
- ... - - ... - html
- - ttag_closing
- ... - - ... - body


br
-
...
-
-
...
-
quote
DocType XHTML 1.0 StrictDocType XHTML 1.0 Strictdoctype_xhtml1_strict
switchswswitch
defaultdefdefault
const (...)constconst(
fmt.Printf(...)prprintf
forforfor
ififif
lambda funclambdalambda
import (...)impimport(
parallel_benchmarkparbenchparallel_benchmark
benchmarkbenchbenchmark
constconstconst
selectselselect
methodmthdmethod
debug fmt.Printfdddd
exampleexampleexample
funcfuncfunc
mapmapmap
varvarvar
typetypetype
var (...)varvar(
testattest
testmaintestmaintestmain
errorerrerror
importimpimport
if erroriferriferr
func main()mainmain
elseelelse
for rangerangeforrange
typedeftypedeftypedef
mathmathmath
#include "..."#include "..."inc.1
FILE *fp = fopen(..., ...);fopenfopen
ifdefifdefifdef
Function Doxygen Docdoxyfunction_doxygen_docdoxygen
#include <...>#include <...>inc
#ifndef XXX; #define XXX; #endifonceonce
mainmainmain
margin-right: ...margin-right: ...mar.right
display: inlinedisplay: inlinedisp.inline
padding: top right bottom leftpadding: top right bottom leftpad.padding
background-image: ...background-image: ...bg.1
background-color: ...background-color: ...bg
font-size: ...font-size: ...fs
display: blockdisplay: blockdisp.block
border size style colorborder size style colorbor
margin top right bottom leftmargin top right bottom leftmar.margin
display: nonedisplay: nonedisp.none
padding-bottom: ...padding-bottom: ...pad.bottom
-vendor-prefix-vv
padding: ...padding: ...pad.pad
padding-right: ...padding-right: ...pad.right
margin-bottom: ...margin-bottom: ...mar.bottom
margin-top: ...margin-top: ...mar.top
margin-left: ...margin-left: ...mar.left
padding-top: ...padding-top: ...pad.top
padding-left: ...padding-left: ...pad.left
font-family: ...font-family: ...ff
margin: ...margin: ...mar.mar
clear: ...clear: ...cl
fixesfixfixes
.yas-parents
typetypetype
referencesrefreferences
defundefundefun
defdefdef
targettargettarget
projectprojproject
propertypropproperty
Assembly Function Docdoxyfunction_doxygen_doc
for (...) { ... }forfor
if (...) { ... }ifif
sub ... { ... }subsub
.yas-parents
... while ...xwhilexwhile
eval { ... } if ($@) { ... }evaleval
if, elsif, else ...ifeeifee
... foreach ...xforexfore
foreach ... { ... }forefore
while (...) { ... }whilewhile
... if ...xifxif
... unless ...xunlessxunless
if (...) { ... } else { ... }ifeife
unless (...) { ... }unlessunless
package githubpgpackage_github
installCheckPhaseicinstallCheckPhase
installPhaseipinstallPhase
checkPhasechcheckPhase
buildPhasebpbuildPhase
phasesphphases
configurePhasecpconfigurePhase
distPhasedpdistPhase
fixupPhasefpfixupPhase
unpackPhaseupunpackPhase
patchPhasepppatchPhase
package urlpupackage_url
forforfor
.yas-parents
dictdictdict
defdefdef
timestimestimes
printlnprprintln
classclassclass
.yas-parents
allallall
cleanclclean
loop(...) -> receive _ -> loop(...) end.loop(...) -> receive _ -> loop(...) end.loop
-include_lib("...").-include_lib("...").inc.lib
begin ... endbegin ... endbegin
-record(...,{...}).-record(...,{...}).rec
-compile(...).-compile(...).compile
if ... -> ... ; true -> ... endif ... -> ... ; true -> ... endif
-undef(...).-undef(...).undef
-behaviour(...).-behaviour(...).beh
try ... of ... catch after endtry ... of ... catch after endtry
fun (...) -> ... endfun (...) -> ... endfun
receive ... -> ... endreceive ... -> ... endrcv
-ifdef(...). ... -endif.-ifdef(...). ... -endif.ifdef
-include("...").-include("...").inc
-define(...,...).-define(...,...).def
-export([]).-export([]).exp
receive after ... -> ... endreceive after ... -> ... endrcv.after
-module().-module().mod
-import([]).-import([]).imp
case ... of ... endcase ... of ... endcase
after ... ->after ... ->after
-ifndef(...). ... -endif.-ifndef(...). ... -endif.ifndef
switch (...) { case : ... default: ...}switchswitch
printfprintfprintf
forforfor
if (...) { ... }ifif
Member description!<member_descriptiondoxygen
Function description\brieffunction_descriptiondoxygen
ternary?ternary
whilewhilewhile
File description\filefile_descriptiondoxygen
do { ... } while (...)dodo
for_nfornfor_n
else { ... }elseelse
case : {...}casecase
struct ... { ... }structstruct
.yas-parents
foreachforeachforeach
PHPDoc @license GPLv2*license-gplv2license-doc-gplv2annotation
function statementfunctionfunctiondefinitions
.yas-setup.el
switchswitchswitch
__callStatic()__callStatic__callStaticMagic Methods
setsetsetdefinitions
PHPDoc @property*propertyproperty-docannotation
PHPDoc: var*varvar-docdefinitions
function expr (closure)fnfndefinitions
definedefinedefinedefinitions
catchcatchcatch
PHPDoc (multi-line)/**doc-comment-multilineannotation
var_dump() exitvdevdegeneric
fwrite(STDOUT)stdoutstdoutgeneric
ififif
PHPDoc @license Apache License*license-apachelicense-doc-apacheannotation
Doc comment (one-line)*doc-comment-onelineannotation
constconstconstdefinitions
declare(ticks=)ticksticksdefinitions
trytrytry
var_export()vevegeneric
__call()__call__callMagic Methods
PHPDoc @property*propertymethod-docannotation
PHPDoc: @var (one-line)@varvar-onelinedefinitions
foreach (array as $key => $value)foreach=>foreach_value
function :typefunction:function-return-type
traittraittrait
PHPDoc @return*returnreturn-docannotation
var_dump()vdvdgeneric
class implementsclsiclsidefinitions
PHPDoc @license MIT*license-mitlicense-doc-mitannotation
PHPDoc @param*paramparam-docannotation
classclsclsdefinitions
PHPDoc @license MPL*license-mpllicense-doc-mplannotation
getgetgetdefinitions
elseelseelsecontrol structure
psyshpsyshpsyshgeneric
class extendsclseclsedefinitions
interfaceinterfaceinterface
elseifelseifelseif
PHPDoc @license*licenselicense-docannotation
funfunfunction
instanceinsinstance
fixme dummyefixefix
funefunefunctione
docddoc
modulemodmodule
printprprint
datadadata
importimportimport
main functionmainmain
new classclassnew class
casecasecase
pragmapragpragma
elisp`elisp
${ ... } field$ffield
groupgroupgroup
${n:$(...)} mirror$mmirror
Snippet headervarsvars
contcontcont
imgimg_img
embeddedemb_embedded
links - links
pythonpy_python
matrixmatrix_matrix
verse - verse
style - style
figurefig_figure
Title - title
ipythonipy_ipython
umlumluml
elispelisp_elisp
entryentry_entry
images - images
export - export
setupsetsetup
email - email
HTML - html
center - center
include - include
videos - videos
language - language
reveal_single_colored_background - rv_background
example - exampleblock
quote - quote
keywords - keywords
options - options
table - table
reveal_image_background - rv_image_background
date - date
author - author
descriptiondescdescription
dotdot_dot
.yas-parents
fgetsfgetsfgets
compilecompilecompile
defineddefine
printfprprintf
stdlibstdstdlib
stdioiostdio
unistduniunistd
.yas-parents
scanfscanfscanf
mallocmallocmalloc
packedpackedpacked
fprintffprintffprintf
unionunionunion
stringstrstring
assertassassert
strstrstrstrstrstr
section--section
entryentryentry
listlistlist
sh_binaryshbinshbin
java_runtimejrunjrun
filegroupfgfg
genquerygenqgenq
cc_binaryccbccb
cc_testcctcct
py_runtimepyrunpyrun
sh_testshtestshtest
cc_proto_libraryccpccp
py_binarypybinpybin
java_importjimpjimp
workspacewsws
aliasaliasalias
cc_importccicci
py_testpytestpytest
java_libraryjlibjlib
py_librarypylibpylib
cc_inc_libraryccincccinc
cc_librarycclccl
java_binaryjbinjbin
java_testjtestjtest
sh_libraryshlibshlib
GOTOgotoGOTO
ENVenvENV
runrunrun
addaddadd
env$$env$
KERNELkerKERNEL
functionffunction
switchswswitch
alertalertal
Constructorinitinit
fireEventfireEventev.fire
let declarationletletes6
jsonjsonreq.json
forforfor
ififif
addEventaddEventev.add
const declarationconstconstes6
return-comment*@rreturn-comment
gettergetgetteres6
type-inline-comment*tytype-multiline-comment
methodmetmethodes6
console.logconsole.loglog
exportexpexportes6
multiline-comment/**multiline-comment
settersetsetteres6
Promiseprompromisees6
param-comment*@pparam-comment
type-inline-comment@tytype-inline-comment
try...catch statementtrytry-catch
eacheacheach
elseelseel
init-es6initinit-es6es6
importimpimportes6
debuggerdbgdebugger
import memberimmimport-memberes6
ClassClassclass
class-es6classclass-es6es6
comment (/* ... */)comment (/* ... */)com
arrow functionafarrow-functiones6
htmlhtmlreq.html
req
letletlet
forforfor
if
cond
sss
when
defdefdef
do
ifn
defm
imp
main
class
unless
terraformtfterraform
resourceresresource
variablevarvariable
providerprovprovider
modulemodmodule
datadatadata
localslocalslocals
outputoutputoutput
Iterate over elements of iterable (for-in) loopiteriter
Function returning nothingvoidvoid
Anonymous classobjectanonymous
Extension read-write propertyexvarexvar
Singletonsingletonsingleton
Prints a string to System.outsoutsout
Inserts 'if not null' expressioninninn
Closure (function without name)closureclosure
Extension functionexfunexfun
Extension read-only propertyexvalexval
Function with no parametersfun0fun
Prints a value to System.outsoutvsoutv
psvmpsvmpsvm
Inserts 'if null' expressionifnifn
main() functionmainmain
Prints a string to System.errserrserr
Interfaceinterfaceinterface
foreachforforeach
functionfunfunction
add_librarylibadd_library
setsetset
macromacromacro
optionoptoption
ifelseififelse
ififif
projectprojproject
includeincinclude
add_executableexeadd_executable
cmake_minimum_requiredmincmake_minimum_required
messagemsgmessage
.yas-parents
subsecsubsubsec
empheemph
beginbeginbegin
sumsumsum
item-item
pythonpypython
notenonote
moderncv-cvlistitemcvitemmoderncv-cvlistitem
columnscolscolumns
figurefigfigure
captioncacaption
full template of moderncv classmoderncvmoderncv
subfiguresubfigsubfigure
ififif
binombinombinom
textbfbtextbf
moderncv-cvlistdoubleitemcvditemmoderncv-cvlistdoubleitem
acronymacacronym
sectionsecsection
blockblblock
algalgalg
moderncv-cvlanguagecvlangmoderncv-cvlanguage
usepackagepkgusepackage
bigcapbigcapbigcap
glsggls
listinglstlisting
citeccite
moviemoviemovie
glsplgpglspl
GlsGcapgls
framefrframe
intintint
itemizeititemize
newcommandcmdnewcommand
documentclassdocdocumentclass
includegraphicsigincludegraphics
moderncv-cvlinecvlinemoderncv-cvline
codecodecode
bigcupbigcupbigcup
newglossaryentryglnewglossaryentry
questionqquestion
labellablabel
fracfracfrac
full template of article classarticlearticle
moderncv-cventrycventrymoderncv-cventry
moderncv-cvcomputercvcompmoderncv-cvcomputer
alertblockalalertblock
subfsfsubf
enumerateenumenumerate
prodprodprod
descriptiondescdescription
getsetgetsetgetset
implimplimpl
funcaafunfunca
forforfor
foriforifori
aclassaclsaclass
gettergetgetter
extextext
settersetsetter
funfunfunc
importimpimport
mainmainmain
classclsclass
partpartpart
function ... end function ...functionfunction
logicallogicall
intrinsicintrinsicintr
continuecontinuec
block datablock databd
where ... end where ...wherewhere
charactercharacterch
forall ... end forall ...forallforall
if then end ifif then end ifif
implicit noneimplicit nonein
subroutine .. end subroutinesubroutinesubroutine
program .. end programprogramprogram
pure subroutine .. end subroutinepure subroutinepures
module ... end module ...modulemodule
pure function ... end function ...pure funcpuref
includeincludeinc
until ... end until ...untiluntil
while ... end while ...whilewhile
read (*,*)read (*,*)re
parameterparameterpa
double precisiondouble precisiondp
double complexdouble complexdc
do ... end do ...dodo
write (*,*)write (*,*)wr
complexcomplexcx
__iter__iteriterdunder methods
proppropprop
functionffunctiondefinitions
.yas-setup.el
not_implnot_implnot_impl
assertEqualaeassertEqualtesting
fromfromfrom
initinitinit
setdefsetdefsetdef
decdecdec
#!#!bang
parse_argspargsparse_argsargparser
staticsmstatic
ifmainifmifmain
logger_namelnlogger_name
loggingloglogging
tryelsetrytryelse
allallall
for ... in ... : ...forfor
subclasssclssclsobject oriented
__getitem__getit__getitem__dunder methods
__len__len__len__dunder methods
ififif
lambdalamlambda
celery pdbcdbcelery_pdbdebug
withwithwith
test_classtcstest_class
django_test_classtcsdjango_test_classtesting
assetNotInanassertNotIntesting
docddoc
utf-8 encodingutf8utf8
trytrytry
__exit__ex__exit__dunder methods
.yas-parents
assertInaiassertIntesting
function_docstring_numpyfdnfunction_docstring_numpydefinitions
deftestdtdeftesttesting
methodmmethodobject oriented
self_without_dotsself_without_dotobject oriented
supersupersuperobject oriented
assertNotEqualaneassertNotEqualtesting
listlilist
argargargargparser
setupsetupsetupdistribute
Function Doxygen Docdoxy_funcfunction_doxygen_docdoxygen
selfassignsnselfassignobject oriented
metaclassmtmetaclassobject oriented
assertTrueatassertTruetesting
returnrreturn
printpprint
npnpnp
whilewhwhilecontrol structure
Class Doxygen Docdoxy_classclass_doxygen_docdoxygen
passpspass
with_statementfwwith_statementfuture
__unicode__ununicodedunder methods
Import pyplotpltpl
scriptscriptscript
assertRaisesarassertRaises.with
__str__strstrdunder methods
classmethodcmclassmethodobject oriented
test_filetftest_file
embedembedembed
__new__new__new__dunder methods
assertRaisesarassertRaisestesting
__setitem__setit__setitem__dunder methods
parserparsparserargparser
assertFalseafassertFalsetesting
arg_positionalargarg_positionalargparser
function_docstringfdfunction_docstringdefinitions
tracetrtracedebug
method_docstringmdmethod_docstringobject oriented
__repr__reprreprdunder methods
regregreg
doctestdocdoctesttesting
importimpimport
classclsclsobject oriented
assertassasserttesting
init_docstringidinit_docstring
mainmainmain
ifeifeife
sizesizesize
__contains__cont__contains__dunder methods
interactintinteract
ipdb traceitripdbdebugdebug
__eq__eqeqdunder methods
enumenenumobject oriented
unicode_literalsfuunicode_literalsfuture
self.selfobject oriented
dataclassdcdataclassobject oriented
__enter__ent__enter__dunder methods
variablevarvariable
parameter_omnetppparparameter_omnetpp
mathmathmath
scheduleAtschedscheduleAt
nannannan
EVevEV
uniformuniuniform
emit_signalemitemit_signal
intuniformintuniintuniform
omnetomnetomnet
.yas-parents
insert-file-contentsinsert-file-contentsinsert-file-contents
save-excursionsave-excursionsave-excursion
match-beginningmatch-beginningmatch-beginning
traversing a directorytraversing a directorytraverse_dir
string=string=string=
defundefdefun
arefarefaref
match-endmatch-endmatch-end
letletlet
read lines of a filex-filex-file.read-lines
region-endregion-endregion-end
shouldshshould
string-to-numberstring-to-numberstring-to-number
rename-filerename-filerename-file
find-filefind-filefind-file
delete-chardelete-chardelete-char
memqmemqmemq
fboundpfboundpfboundp
directory-filesdirectory-filesdirectory-files
grab buffer substringgrab buffer substringgrabstring
.read_me
file-relative-namefile-relative-namefile-relative-name
package headerheaderheader
delete-directorydelete-directorydelete-directory
file-name-sans-extensionfile-name-sans-extensionfile-name-sans-extension
file-name-extensionfile-name-extensionfile-name-extension
re-search-forwardre-search-forwardre-search-forward
defcustomdefcustomdefcustom
a function that process a filex-filex-file.process
make-local-variablemake-local-variablemake-local-variable
forward-lineforward-lineforward-line
grab buffer substringx-grabstringx-grabstring
skip-chars-backwardskip-chars-backwardskip-chars-backward
lambdalamlambda
make-directorymake-directorymake-directory
set-file-modesset-file-modesset-file-modes
a function that process a filea function that process a filefile.process
condition-casecondition-casecondition-case
kbdkbdkbd
defconstconstconst
condcondcond
notnotnot
buffer-file-namebuffer-file-namebuffer-file-name
search-backwardsearch-backwardsearch-backward
ert-deftestedtert-deftest
string-matchstring-matchstring-match
expand-file-nameexpand-file-nameexpand-file-name
use-packageupuse-package
mapcmapcmapc
andandand
add-hookadd-hookadd-hook
re-search-backwardre-search-backwardre-search-backward
buffer-substring-no-propertiesbuffer-substring-no-propertiesbuffer-substring-no-properties
global-set-keyglobal-set-keyglobal-set-key
whenwwhen
goto-chargoto-chargoto-char
search-backward-regexpsearch-backward-regexpsearch-backward-regexp
asetasetaset
region-beginningregion-beginningregion-beginning
ororor
copy-directorycopy-directorycopy-directory
line-end-positionline-end-positionline-end-position
replace-regexpreplace-regexpreplace-regexp
formatfformat
copy-filecopy-filecopy-file
line-beginning-positionline-beginning-positionline-beginning-position
autoloadautoloadautoload
find and replace on regionx-find-replacex-find-replace
word_regexp<word_regexp
buffer-substringbuffer-substringbuffer-substring
point-maxpoint-maxpoint-max
bounds-of-thing-at-pointbounds-of-thing-at-pointbounds-of-thing-at-point
beginning-of-linebeginning-of-linebeginning-of-line
search-forwardsearch-forwardsearch-forward
yes-or-no-pyonpyes-or-no-p
kill-bufferkill-bufferkill-buffer
interactiveinteractiveinteractive
set-bufferset-bufferset-buffer
insertinsertinsert
number-to-stringnumber-to-stringnumber-to-string
buffer-modified-pbuffer-modified-pbuffer-modified-p
with-current-bufferwith-current-bufferwith-current-buffer
search-forward-regexpsearch-forward-regexpsearch-forward-regexp
replace-regexp-in-stringreplace-regexp-in-stringreplace-regexp-in-string
pointpointpoint
backward-charbackward-charbackward-char
read lines of a fileread lines of a filefile.read-lines
define-keydefine-keydefine-key
match-stringmatch-stringmatch-string
widget-getwidget-getwidget-get
delete-regiondelete-regiondelete-region
process marked files in diredprocess marked files in direddired.process_marked
end-of-lineend-of-lineend-of-line
assqassqassq
Command that works on region or wordx-word-or-regionx-word-or-region
traversing a directoryx-traverse_dirx-traverse_dir
grab word under cursorx-grabthingx-grabthing
errorerrorerror
defaliasdefaliasdefalias
grab word under cursorgrab word under cursorgrabthing
putputput
split-stringsplit-stringsplit-string
Command that works on region or wordCommand that works on region or wordword-or-region
forward-charforward-charforward-char
nthnthnth
find and replace on regionfind and replace on regionfind-replace
custom-autoloadcustom-autoloadcustom-autoload
current-buffercurrent-buffercurrent-buffer
delete-filedelete-filedelete-file
region-active-pregion-active-pregion-active-p
looking-atlooking-atlooking-at
use-package bindingupbuse-package-binding
defvardefvardefvar
getgetget
minor_modeminorminor_mode
setqsetqsetq
skip-chars-forwardskip-chars-forwardskip-chars-forward
process marked files in diredx-diredx-dired.process_marked
save-buffersave-buffersave-buffer
point-minpoint-minpoint-min
vectorvectorvector
thing-at-pointthing-at-pointthing-at-point
set-markset-markset-mark
file-name-nondirectoryfile-name-nondirectoryfile-name-nondirectory
substringsubstringsubstring
messagemessagemessage
file-name-directoryfile-name-directoryfile-name-directory
gengengen
echoechoecho
ififif
PHONYphonyPHONY
var$var
inject(...) { |...| ... }inject(...) { |...| ... }inject
require "..."require "..."req
:yields: arguments (rdoc):yields: arguments (rdoc)y
each_with_index { |e, i| ... }each_with_index { |e, i| ... }eawi
initinitinit
zip(...) { |...| ... }zip(...) { |...| ... }zip
each_cons(...) { |...| ... }each_cons(...) { |...| ... }eac
delete_if { |...| ... }delete_if { |...| ... }deli
deep_copy(...)deep_copy(...)dee
formulaformformula
times { |n| ... }times { |n| ... }tim
include Comparable; def <=> ... endinclude Comparable; def <=> ... endComp
all? { |...| ... }all? { |...| ... }all
forforfor
attribute@attribute
if ... endif ... endif
attr_accessor ...attr_accessor ...rw
attr_writer ...attr_writer ...w
detect { |...| ... }detect { |...| ... }det
select { |...| ... }select { |...| ... }select
reject { |...| ... }reject { |...| ... }reject
class << self ... endclass << self ... endcla
any? { |...| ... }any? { |...| ... }any
collect { |...| ... }collect { |...| ... }collect
if __FILE__ == $PROGRAM_NAME ... endif __FILE__ == $PROGRAM_NAME ... endapp
=begin rdoc ... =end=begin rdoc ... =end=b
test classtctest class
when ... endwhen ... endwhen
require_relativerequire_relativerel
include Moduleincincgeneral
until ... enduntil ... enduntilcontrol structure
tututu
def ... enddefdef
alias_method new, oldalias_method new, oldam
Benchmark.bmbm(...) do ... endBenchmark.bmbm(...) do ... endbm
while ... endwhile ... endwhile
upto(...) { |n| ... }upto(...) { |n| ... }upt
/usr/bin/ruby -wU/usr/bin/ruby -wUrb
reduce(...) { |...| ... }reduce(...) { |...| ... }red
each_value { |val| ... }each_value { |val| ... }eav
strsstr
include EnumerableEnumEnumcollections
GLOB$GLOB
binding.pryprypry
map { |...| ... }map { |...| ... }map
each_index { |i| ... }each_index { |i| ... }eai
# =># =>#
to_to_to_
benchbenchbench
def method_missing ... enddef method_missing ... endmm
class ... endclass ... endcls
each { |...| ... }each { |...| ... }ea
downto(...) { |n| ... }downto(...) { |n| ... }dow
module ... endmodmod
for ... in ...; ... endfor ... in ...; ... endforin
binding.pry_remoterpryrpry
if ... else ... endif ... else ... endife
case ... endcase ... endcase
attr_reader ...attr_reader ...r
.yas-parents
Header 1 (=)h1h1.2
Horizontal Rule (-)hrhr.1
Imageimgimg
Reference Linkrlinkrlink
Horizontal Rule (*)hrhr.2
Reference Labelrlbrlb
Strong emphasis__strong-emphasis
UTF-8 encodingutf8utf8
Emphasis_emphasis
Ordered Listolordered-list
Unordered List-hyphen
Linklinklink
Header 6h6h6
Header 1 (#)h1h1.1
Code blockcodecode
Highlighthighlighthighlight
Referenced Imagerimgrimg
Header 3h3h3
Header 5h5h5
Inline Code`back-quote
Header 2 (-)h2h2.2
Unordered List+plus
Header 4h4h4
Header 2 (##)h2h2.1
rulerurule
vbargraphvbvbargraph
sumsusum
declare licensedldeclarelicense
vgroupvgvgroup
buttonbubutton
hsliderhshslider
headerheheader
withwiwith
nentrynenentry
declare namedndeclarename
processprprocess
parpapar
seqseseq
declarededeclare
processxpxprocessx
hgrouphghgroup
declare versiondvdeclareversion
tgrouptgtgroup
checkboxchcheckbox
hbargraphhbhbargraph
declare authordadeclareauthor
importimimport
vslidervsvslider
componentcocomponent
prodmuprod
casecacase
dbgdbgdbg
providesprovidesprovides
nxnxnx
modulemodmodule
.yas-parents
ifdefifdefifdef
simsimsim
uint8_tu8uint8_t
commandcommandcommand
usesusesuses
TOSSIMtossimTOSSIM
eventeventevent
interfaceintinterface
try … finally … tryftf
debugdebugdebug
debugmdebugmdebugm
if …ifif
method … { … }methodme
try … catch … finallytcftcf
while (…) { … }whilewhile
foreach (e ; …) { … }fefe
import …importim
unittest { … }unittestunit
foreach_reverse (e ; …) { … }ferfer
int main(string[] args) { … }mainmain
class … { … }classclass
if … elseifeife
return …returnr
try … catch …tctc
enum … { … } enumenum
version (ident) { … }versionversion
struct … { … }structstruct
repeat-untilrepeat-untilrepeat-until
ignoringignoringignoring
tell-application-to-activatetell-application-to-activatetell-application-to-activate
with-transactionwith-transactionwith-transaction
with-timeout-of-secondswith-timeout-of-secondswith-timeout-of-seconds
consideringconsideringconsidering
ononon
ififif
commentcommentcomment
repeat-withrepeat-withrepeat-with
repeatrepeatrepeat
trytrytry
.yas-parents
display-dialogdisplay-dialogdisplay-dialog
using-terms-from-applicationusing-terms-from-applicationusing-terms-from-application
ignoring-application-responsesignoring-application-responsesignoring-application-responses
considering-application-responsesconsidering-application-responsesconsidering-application-responses
tell-applicationtell-applicationtell-application
repeat-whilerepeat-whilerepeat-while
.yas-parents
.yas-setup.el
commentcocomment
commentlinecolcommentline
xxxxxxx
todottodo
fixmefifixme
commentblockcobcommentblock
- - element - - pardef
- - wwith-param
-

element -

pp
- - elements - llit
- - elements - llet
- - elements - ootherwise
- - elements - ltlit-tag
- - - - elements - cchoose
-
- element -
- section
- - in monodix section - - e-in-mono-section
element - s
- - element - - par
- - elements - wwhen
- - in pardefs - - e-in-pardef
- - mcall-macro
- - element - - sdef
elementsvvar
- - elements - cclip
property ... ... { ... }propprop
using System;usingusing.1
- /// - ... - commentcomment
.yas-parents
- /// - ... - commentcomment.3
using System....;usingusing.2
public void Method { ... }methodmethod
namespace .. { ... }namespacenamespace
using ...;usingusing
foreach { ... }forefore
private attribute ....; public property ... ... { ... }attribattrib.1
- /// - - ... - commentcomment.1
private attribute ....;attribattrib
- /// - - ... - commentcomment.2
#region ... #endregionregionregion
private _attribute ....; public Property ... ... { ... }attribattrib.2
mainmainmain
class ... { ... }classclass
.yas-parents
create procedure ...create procedure ...create.1
create table ...create table ...create
insertinsinsert
REFERENCES ...REFERENCES ...references
, ColumnName ColumnType NOT NULL..., ColumnName ColumnType NOT NULL...column
CONSTRAINT [..] FOREIGN KEY ...CONSTRAINT [..] FOREIGN KEY ...constraint.1
CONSTRAINT [..] PRIMARY KEY ...CONSTRAINT [..] PRIMARY KEY ...constraint
.yas-parents
functionffunction
for loopforfor loop
bang!bang
ififif
until loopuntiluntil
while loopwhilewhile
safer bash settings for scriptss!safe-bang
ifeifeife
argsargs
-
-
-

sql-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
create procedure ...create procedure ...create.1
create table ...create table ...create
insertinsinsert
REFERENCES ...REFERENCES ...references
, ColumnName ColumnType NOT NULL..., ColumnName ColumnType NOT NULL...column
CONSTRAINT [..] FOREIGN KEY ...CONSTRAINT [..] FOREIGN KEY ...constraint.1
CONSTRAINT [..] PRIMARY KEY ...CONSTRAINT [..] PRIMARY KEY ...constraint
-
-
-

swift-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
prop-getsetprop-getsetprop
uiViewControllerLifecycleuiViewControllerLifecycleuiviewcontrollerlifecycle
forcaseforcaseforcase
checkversioncheckversioncheckversion
letletlet
documentDirectorydocumentDirectorydocumentdirectory
dispatchAsyncdispatchAsyncdispatchasync
availableavailableavailable
if (...) { ... }ifif
uiCollectionViewDelegateuiCollectionViewDelegateuicollectionviewdelegate
foriforifori
uitableViewDataSourceuitableViewDataSourceuitableviewdatasource
trycatchtrycatchtrycatch
uiTableViewDelegateuitableViewDelegateuitableviewdelegate
uialertControlleruialertControlleruialertcontroller
markmarkmark
initcoderinitcoderinitcoder
whilewhilewhile
sortarrayofstringssortarrayofstringssortarrayofstrings
uicollectionViewDataSourceuicollectionViewDataSourceuicollectionviewdatasource
funcfuncfunc
dispatchAfterdispatchAfterdispatchafter
varvarvar
dispatchMaindispatchMaindispatchmain
-
-
-

terraform-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
terraformtfterraform
resourceresresource
variablevarvariable
providerprovprovider
modulemodmodule
datadatadata
localslocalslocals
outputoutputoutput
-
-
-

text-mode

- - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
.yas-parents
-
-
-

tuareg-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
ifthenififthen
letletlet
recrecrec
printfprprintf
forforfor
list_comprehensionllist_comprehension
type_typetypetype_type
trytrytry
funfunfun
modulemodmodule
whilewhwhile
guard|guard
valvalval
openopopen
docstringddocstring
type_recordtypetype
assertasassert
matchmatchmatch
mainmmain
ifthenelseififthenelse
-
-
-

typerex-mode

- - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
.yas-parents
-
-
-

typescript-mode

- - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
.yas-parents
-
-
-

udev-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
GOTOgotoGOTO
ENVenvENV
runrunrun
addaddadd
env$$env$
KERNELkerKERNEL
-
-
-

web-mode

- - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
.yas-parents
-
-
-

yaml-mode

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namekeyfilenamegroupdesc
section--section
entryentryentry
listlistlist
-
- - + + + + +
+

GraphQL +

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
name + key + filename + group + desc +
exportGraphQL + expgql + expgql + + +
graphQLForComponent + graphql + graphql + + +
+
+
+

Jest +

+ + + + + + + + + + + + + + + + + + +
name + key + filename + group + desc +
setupReactNativeTestWithRedux + snrtest + snrtest + + +
describeBlockdescdesc
setupTeststeststest
setupReactComponentTestWithReduxsrtestsrtest
itBlocktittit
testBlocktesttest
setupReactNativeTestsntestsntest

React

namekeyfilenamegroupdesc
getDerivedStateFromPropsgdsfpgdsfp
reactFunctionMemoComponentrmcrmc
componentDidUpdatecdupcdup
propTypeOneOfTypeRequiredptetrptetr
propTypeNodeRequiredptndrptndr
reactClassCompomentPropTypesrccprccp
componentSetStateFuncssfssf
propTypeObjectOfptooptoo
propTypeAnyptanyptany
propTypeOneOfTypeptetptet
reactArrowFunctionExportComponentrafcerafce
hocComponenthochoc
reactClassExportPureComponentrpcerpce
propTypeBoolRequiredptbrptbr
propTypeEnumptepte
propTypeBoolptbptb
staticPropTpyesptypesptypes
import React, { PureComponent } & PropTypesimrpcpimrpcp
import React Routerimrrimrr
propTypeNodeptndptnd
reactClassCompomentrccrcc
import React, { memo } & PropTypesimrmpimrmp
propTypeElementptelptel
propTypeShapeRequiredptshrptshr
componentDidMountcdmcdm
destructStatecscs
import React, { Component } & PropTypesimrcpimrcp
componentRenderrenren
reactArrowFunctionComponentWithPropTypesrafcprafcp
createRefcrefcref
propTypeInstanceOfRequiredptirptir
createContextrcontextrcontext
import ReactDOMimrdimrd
componentSetStateObjectsstsst
propTypeFuncptfptf
propTypeNumberptnptn
shouldComponentUpdatescuscu
propTypeNumberRequiredptnrptnr
destructPropscpcp
propTypeEnumRequiredpterpter
propTypeObjectOfRequiredptoorptoor
import PropTypesimptimpt
propTypeObjectptopto
import React, { Component }imrcimrc
propTypeStringptspts
reactArrowFunctionComponentrafcrafc
componentStatestatestate
reactClassExportComponentrcerce
import React, { PureComponent }imrpcimrpc
reactClassExportComponentWithPropTypesrceprcep
import Reactimrimr
propTypeArrayptapta
forwardReffreffref
propTypeElementRequiredptelrptelr
emptyStateestest
propTypeShapeptshptsh
propTypeObjectRequiredptorptor
propTypeFuncRequiredptfrptfr
propTypeInstanceOfptipti
classConstructorrconstrconst
reactClassPureComponentWithPropTypesrpcprpcp
reactClassPureComponentrpcrpc
componentWillUnmountcwuncwun
componentPropspropsprops
propTypeArrayRequiredptarptar
reactFunctionMemoComponentWithPropTypesrmcprmcp
import React, { memo }imrmimrm
getSnapshotBeforeUpdategsbugsbu
propTypeStringRequiredptsrptsr
propTypeArrayOfptaoptao
propTypeArrayOfRequiredptaorptaor

React-Native

namekeyfilenamegroupdesc
reactNativeComponentWithStylesrncsrncs
reactNativePureComponentExportrnpcernpce
reactNativePureComponentrnpcrnpc
reactNativeComponentExportrncernce
reactNativeStylesrnstylernstyle
reactNativeImportimrnimrn
reactNativeComponentrncrnc

Redux

namekeyfilenamegroupdesc
import redux statementreduxredux
reactNativeClassComponentReduxrncreduxrncredux
reduxSelectorrxselectrxselect
mappingToPropsreduxmapreduxmap
reduxConstrxconstrxconst
hocComponentWithReduxhocreduxhocredux
reduxReducerrxreducerrxreducer
reduxActionrxactionrxaction
reactClassCompomentReduxrcreduxrcredux

antlr-mode

namekeyfilenamegroupdesc
projectprojproject
targettargettarget
propertypropproperty

app_engine_resources

namekeyfilenamegroupdesc
google_app_engine_applicationgoog_app_engine_applicationgoogle_app_engine_application

apples-mode

namekeyfilenamegroupdesc
with-transactionwith-transactionwith-transaction
ignoring-application-responsesignoring-application-responsesignoring-application-responses
commentcommentcomment
considering-application-responsesconsidering-application-responsesconsidering-application-responses
using-terms-from-applicationusing-terms-from-applicationusing-terms-from-application
with-timeout-of-secondswith-timeout-of-secondswith-timeout-of-seconds
ififif
tell-applicationtell-applicationtell-application
repeat-whilerepeat-whilerepeat-while
consideringconsideringconsidering
ononon
repeat-withrepeat-withrepeat-with
trytrytry
ignoringignoringignoring
display-dialogdisplay-dialogdisplay-dialog
repeat-untilrepeat-untilrepeat-until
repeatrepeatrepeat
tell-application-to-activatetell-application-to-activatetell-application-to-activate

applescript-mode

namekeyfilenamegroupdesc
with-transactionwith-transactionwith-transaction
ignoring-application-responsesignoring-application-responsesignoring-application-responses
commentcommentcomment
considering-application-responsesconsidering-application-responsesconsidering-application-responses
using-terms-from-applicationusing-terms-from-applicationusing-terms-from-application
with-timeout-of-secondswith-timeout-of-secondswith-timeout-of-seconds
ififif
tell-applicationtell-applicationtell-application
repeat-whilerepeat-whilerepeat-while
consideringconsideringconsidering
ononon
repeat-withrepeat-withrepeat-with
trytrytry
ignoringignoringignoring
display-dialogdisplay-dialogdisplay-dialog
repeat-untilrepeat-untilrepeat-until
repeatrepeatrepeat
tell-application-to-activatetell-application-to-activatetell-application-to-activate

bazel-mode

namekeyfilenamegroupdesc
py_runtimepyrunpyrun
aliasaliasalias
cc_proto_libraryccpccp
cc_librarycclccl
genquerygenqgenq
sh_testshtestshtest
java_libraryjlibjlib
sh_libraryshlibshlib
sh_binaryshbinshbin
cc_importccicci
cc_testcctcct
py_librarypylibpylib
py_binarypybinpybin
py_testpytestpytest
filegroupfgfg
cc_inc_libraryccincccinc
cc_binaryccbccb
java_runtimejrunjrun
workspacewsws
java_importjimpjimp
java_binaryjbinjbin
java_testjtestjtest

bibtex-mode

namekeyfilenamegroupdesc
proceedingsproceedingsproceedings
bookletbookletbooklet
inreferenceinreferenceinreference
bookbookbook
thesisthesisthesis
datasetdatasetdataset
xdataxdataxdata
unpublishedunpublishedunpublished
electronicelectronicelectronic
manualmanualmanual
mvbookmvbookmvbook
reportreportreport
setsetset
periodicalperiodicalperiodical
suppbooksuppbooksuppbook
collectioncollectioncollection
incollectionincollectionincollection
bookinbookbookinbookbookinbook
inbookinbookinbook
techreporttechreporttechreport
masterthesismasterthesismasterthesis
onlineonlineonline
referencereferencereference
suppcollectionsuppcollectionsuppcollection
conferenceconferenceconference
phdthesisphdthesisphdthesis
suppperiodicalsuppperiodicalsuppperiodical
articlearticlearticle
mvcollectionmvcollectionmvcollection
inproceedingsinproceedingsinproceedings
patentpatentpatent
miscmiscmisc
mvereferencemvreferencemvreference
softwaresoftwaresoftware

bigquery_resources

namekeyfilenamegroupdesc
google_bigquery_tablegoog_bigquery_tablegoogle_bigquery_table
google_bigquery_datasetgoog_bigquery_datasetgoogle_bigquery_dataset

bigtable_resources

namekeyfilenamegroupdesc
google_bigtable_tablegoog_bigtable_tablegoogle_bigtable_table
google_bigtable_instancegoog_bigtable_instancegoogle_bigtable_instance

binary_authorization_resources

namekeyfilenamegroupdesc
google_binary_authorization_policygoog_binary_authorization_policygoogle_binary_authorization_policy
google_binary_authorization_attestorgoog_binary_authorization_attestorgoogle_binary_authorization_attestor

c++-mode

namekeyfilenamegroupdesc
cincincin
make_heapmkhmkh
operator====operator==operator overloading
is_partitionediptipt
protectedptprotected
vectorvecvector
findfndfnd
remove_copyrmcrmc
constructorctconstructor
is_sorted_untilisuisu
d_operator<<<<d_operator
cerrerrcerr
countcntcnt
operator++operator+operator overloading
is_heapihpihp
strstrstr
test_maintest_maintest_maintesting
stable_sortstssts
find_iffnifni
deletedldelete
mergemrgmrg
find_endfnefne
any_ofanoano
test_suitetstest_suitetesting
modulemodmodule
docdocdoc
class11cls11class11c++11Snippet for C++11 classes based on c++-mode/class. Allows for Rule of
nth_elementnthnth
fixturefixtfixture
operator+=+=operator+=operator overloading
reverservrrvr
cppcppcpp
all_ofaloalo
d_operator[][d_operator[]
remove_copy_ifrmfrmf
for_eachfrefre
is_permutationipripr
fillfilfil
unique_copyucpucp
search_nsrnsrn
copy_ncpncpn
friendfrfriend
removeermerm
const_[]c[const_[]
namespace ...nsns
packpackpack
namespacensnamespace
generate_ngnngnn
move_backwardmpbmpb
copy_backwardcpbcpb
rotate_copyrtcrtc
swap_rangesswrswr
stable_partitionsptspt
operator==operator=operator overloading
dynamic_castingcastdynamic_casting
privateprprivate
cstdcstdcstd
partitionptnptn
iotaitaita
push_heapphhphh
std::ststd_colon
ostreamosostream
replacerplrpl
d_operator>>>>d_operator_istream
max_elementmxemxe
generategnrgnr
copy_ifcpicpi
string to lower caselwrlwr
partial_sortpstpst
fun_declarationffun_declaration
copycpycpy
d+=d+=d+=
find_first_offfoffo
none_ofnnonno
v.begin(), v.end()beginendbeginend
stdstdstd
is_heap_untilihuihu
sssstream
inlineilinline
sort_heapsthsth
classclsclass
templatetemptemplate
reverse_copyrvcrvc
operator!=!=operator!=operator overloading
find_if_notfinfin
operator<<<<operator_ostreamoperator overloading
operator>>>>operator_istreamoperator overloading
delete[]dladelete[]
test casetctest casetesting
coutcoutcout
ignoreignoreignore
remove_ifrmirmi
operator[][]operator[]operator overloading
equaleqleql
replace_ifrpirpi
adjacent_findajfajf
using namespace ...usingusing
sortsrtsrt
mapmapmap
foriforifori
lexigraphical_comparelxclxc
assertassassert
trytrytry
publicpbpublic
trywtrywtryw
prev_permutationprpprp
transformtfmtfm
is_sortedississ
replace_copyrpcrpc
gtestgtestgtesttesting
uniqueuqeuqe
count_ifcnicni
thisththis
rotaterterte
remove whitespace at beginningltrltr
partition_copyptcptc
ioioio
mismatchmsmmsm
throwthrowthrow
fill_nflnfln
partition_pointpptppt
boost_requirereqboost_requireboost
accumulateacmacm
next_permutationnxpnxp
member_functionmfmember_function
random_shuffleshfshf
enumenumenum
iteratoriteriterator
partial_sort_copypscpsc
d_operator[]_constc[d_operator[]_const
searchsrhsrh
replace_copy_ifrcirci
min_elementmnemne
minmax_elementmmemme

c-lang-common

namekeyfilenamegroupdesc
#include "..."#include "..."inc.1
ifdefifdefifdef
Function Doxygen Docdoxyfunction_doxygen_docdoxygen
#ifndef XXX; #define XXX; #endifonceonce
#include <...>#include <...>inc
FILE *fp = fopen(..., ...);fopenfopen
mathmathmath
mainmainmain
typedeftypedeftypedef

c-mode

namekeyfilenamegroupdesc
scanfscanfscanf
printfprprintf
strstrstrstrstrstr
stringstrstring
mallocmallocmalloc
fprintffprintffprintf
stdioiostdio
fgetsfgetsfgets
compilecompilecompile
unionunionunion
assertassassert
unistduniunistd
stdlibstdstdlib
defineddefine
packedpackedpacked

cc-mode

namekeyfilenamegroupdesc
File description\filefile_descriptiondoxygen
printfprintfprintf
Member description!<member_descriptiondoxygen
for_nfornfor_n
struct ... { ... }structstruct
do { ... } while (...)dodo
whilewhilewhile
if (...) { ... }ifif
else { ... }elseelse
forforfor
Function description\brieffunction_descriptiondoxygen
case : {...}casecase
ternary?ternary
switch (...) { case : ... default: ...}switchswitch

chef-mode

namekeyfilenamegroupdesc
rubyrubyruby
scriptscriptscript
templatevtemplatevtemplatev
linkflinkflinkf
cronfcronfcronf
metametameta
executefexecutefexecutef
not_ifnot_ifnot_if
executeexecuteexecute
gitgitgit
bashbashbash
http_requesthttp_requesthttp_request
notifiesnotifiesnotifies
pakpakpak
machinemachinemachine
serviceserviceservice
rolerolerole
only_ifonly_ifonly_if
fileffileffilef
ignore_failureignore_failureignore_failure
supportssupportssupports
croncroncron
remote_fileremote_fileremote_file
http_requestphttp_requestphttp_requestp
linklinklink
directoryfdirectoryfdirectoryf
templatetemplatetemplate
subscribessubscribessubscribes
servicepservicepservicep
filefilefile
incincinc
deploydeploydeploy
envenvenv
pacpacpac
directorydirectorydirectory
useruseruser
pythonpythonpython
providerproviderprovider
groupgroupgroup
cookbook_filecookbook_filecookbook_file
actionactionaction
logloglog
retriesretriesretries

cider-repl-mode

namekeyfilenamegroupdesc

clojure-mode

namekeyfilenamegroupdesc
importimportimport
doseqdoseqdoseq
useuseuse
defdefdef
deftypedeftdeft
defrecorddefrdefr
benchbenchbench
map lambdamapmap.lambda
ififif
nsnsns
defndefndefn
forforfor
whenlwhenlwhenl
reducereducereduce
mdocmdocmdoc
defmacrodefmdefm
fnfnfn
bpbpbp
whenwhenwhen
requirerequirerequire
letletlet
ifliflifl
testtesttest
mapmapmap
optsoptsopts
printprintprint
trytrytry
prprpr
isisis

cloud_build_resources

namekeyfilenamegroupdesc
google_cloudbuild_triggergoog_cloudbuild_triggergoogle_cloudbuild_trigger

cloud_composer_resources

namekeyfilenamegroupdesc
google_composer_environmentgoog_composer_environmentgoogle_composer_environment

cloud_functions_resources

namekeyfilenamegroupdesc
google_cloudfunctions_functiongoog_cloudfunctions_functiongoogle_cloudfunctions_function

cmake-mode

namekeyfilenamegroupdesc
optionoptoption
cmake_minimum_requiredmincmake_minimum_required
includeincinclude
add_executableexeadd_executable
ififif
add_librarylibadd_library
setsetset
ifelseififelse
messagemsgmessage
macromacromacro
projectprojproject
foreachforforeach
functionfunfunction

compute_engine_resources

namekeyfilenamegroupdesc
google_compute_routegoog_compute_routegoogle_compute_route
google_compute_ssl_policygoog_compute_ssl_policygoogle_compute_ssl_policy
google_compute_project_metadatagoog_compute_project_metadatagoogle_compute_project_metadata
google_compute_health_checkgoog_compute_health_checkgoogle_compute_health_check
google_compute_region_autoscalergoog_compute_region_autoscalergoogle_compute_region_autoscaler
google_compute_attached_diskgoog_compute_attached_diskgoogle_compute_attached_disk
google_compute_subnetwork_iam_bindinggoog_compute_subnetwork_iam_bindinggoogle_compute_subnetwork_iam_binding
google_compute_shared_vpc_service_projectgoog_compute_shared_vpc_service_projectgoogle_compute_shared_vpc_service_project
google_compute_instancegoog_compute_instancegoogle_compute_instance
google_compute_instance_group_managergoog_compute_instance_group_managergoogle_compute_instance_group_manager
google_compute_router_natgoog_compute_router_natgoogle_compute_router_nat
google_compute_target_https_proxygoog_compute_target_https_proxygoogle_compute_target_https_proxy
google_compute_global_addressgoog_compute_global_addressgoogle_compute_global_address
google_compute_subnetwork_iam_policygoog_compute_subnetwork_iam_policygoogle_compute_subnetwork_iam_policy
google_compute_http_health_checkgoog_compute_http_health_checkgoogle_compute_http_health_check
google_compute_region_backend_servicegoog_compute_region_backend_servicegoogle_compute_region_backend_service
google_compute_networkgoog_compute_networkgoogle_compute_network
google_compute_autoscalergoog_compute_autoscalergoogle_compute_autoscaler
google_compute_project_metadata_itemgoog_compute_project_metadata_itemgoogle_compute_project_metadata_item
google_compute_region_diskgoog_compute_region_diskgoogle_compute_region_disk
google_compute_target_poolgoog_compute_target_poolgoogle_compute_target_pool
google_compute_diskgoog_compute_diskgoogle_compute_disk
google_compute_vpn_tunnelgoog_compute_vpn_tunnelgoogle_compute_vpn_tunnel
google_compute_target_ssl_proxygoog_compute_target_ssl_proxygoogle_compute_target_ssl_proxy
google_compute_instance_templategoog_compute_instance_templategoogle_compute_instance_template
google_compute_ssl_certificategoog_compute_ssl_certificategoogle_compute_ssl_certificate
google_compute_backend_servicegoog_compute_backend_servicegoogle_compute_backend_service
google_compute_global_forwarding_rulegoog_compute_global_forwarding_rulegoogle_compute_global_forwarding_rule
google_compute_routergoog_compute_routergoogle_compute_router
google_compute_https_health_checkgoog_compute_https_health_checkgoogle_compute_https_health_check
google_compute_vpn_gatewaygoog_compute_vpn_gatewaygoogle_compute_vpn_gateway
google_compute_interconnect_attachmentgoog_compute_interconnect_attachmentgoogle_compute_interconnect_attachment
google_compute_region_instance_group_managergoog_compute_region_instance_group_managergoogle_compute_region_instance_group_manager
google_compute_instance_from_templategoog_compute_instance_from_templategoogle_compute_instance_from_template
google_compute_security_policygoog_compute_security_policygoogle_compute_security_policy
google_compute_addressgoog_compute_addressgoogle_compute_address
google_compute_firewallgoog_compute_firewallgoogle_compute_firewall
google_compute_snapshotgoog_compute_snapshotgoogle_compute_snapshot
google_compute_router_peergoog_compute_router_peergoogle_compute_router_peer
google_compute_subnetwork_iam_membergoog_compute_subnetwork_iam_membergoogle_compute_subnetwork_iam_member
google_compute_instance_groupgoog_compute_instance_groupgoogle_compute_instance_group
google_compute_target_http_proxygoog_compute_target_http_proxygoogle_compute_target_http_proxy
google_compute_shared_vpc_host_projectgoog_compute_shared_vpc_host_projectgoogle_compute_shared_vpc_host_project
google_compute_target_tcp_proxygoog_compute_target_tcp_proxygoogle_compute_target_tcp_proxy
google_compute_router_interfacegoog_compute_router_interfacegoogle_compute_router_interface
google_compute_network_peeringgoog_compute_network_peeringgoogle_compute_network_peering
google_compute_forwarding_rulegoog_compute_forwarding_rulegoogle_compute_forwarding_rule
google_compute_url_mapgoog_compute_url_mapgoogle_compute_url_map
google_compute_imagegoog_compute_imagegoogle_compute_image
google_compute_subnetworkgoog_compute_subnetworkgoogle_compute_subnetwork
google_compute_backend_bucketgoog_compute_backend_bucketgoogle_compute_backend_bucket

conf-unix-mode

namekeyfilenamegroupdesc
sectionsecsection

console

namekeyfilenamegroupdesc
console.infocincinconsole
console.groupEndcgecgeconsole
console.clearcclcclconsole
console.groupcgrcgrconsole
console.timeEndctecteconsole
console.warncwacwaconsole
console.logclgclgconsole
console.countccoccoconsole
console.dircdicdiconsole
console.log (formatted)clocloconsole
console.errorcercerconsole
console.assertcascasconsole

container_analysis_resources

namekeyfilenamegroupdesc
google_container_analysis_notegoog_container_analysis_notegoogle_container_analysis_note

container_engine_resources

namekeyfilenamegroupdesc
google_container_clustergoog_container_clustergoogle_container_cluster
google_container_node_poolgoog_container_node_poolgoogle_container_node_pool

coq-mode

namekeyfilenamegroupdesc
renamerenamerename.yasnippettactics
casecasecase.yasnippettactics
rewrite-rightrwrrewrite-right.yasnippettactics
rewriterwrewrite.yasnippettactics
destructdesdestruct.yasnippettactics
inductionindinduction.yasnippettactics
rewrite-leftrwlrewrite-left.yasnippettactics
InductiveIndinductive.yasnippetdefinitions
DefinitionDefdefinition.yasnippetdefinitions
funfunfun.yasnippetdefinitions
FixpointFixpfixpoint.yasnippetdefinitions
Fixpoint-withFixpwfixpoint-with.yasnippetdefinitions
HypothesesHyposhypotheses.yasnippetpropositions
VariablesVarsvariables.yasnippetpropositions
FactFactfact.yasnippetpropositions
TheoremThetheorem.yasnippetpropositions
RemarkRemremark.yasnippetpropositions
ExampleExpexample.yasnippetpropositions
ParametersParamparameter.yasnippetpropositions
CorollaryCorcorollary.yasnippetpropositions
LemmaLemlemma.yasnippetpropositions
InstanceInsinstance.yasnippetpropositions
AxiomAxiaxiom.yasnippetpropositions
HypothesisHypohypothesis.yasnippetpropositions
ConjectureConjconjecture.yasnippetpropositions
VariableVarvariable.yasnippetpropositions
PropositionProproposition.yasnippetpropositions
LocateLlocate.yasnippetlookup
PrintPprint.yasnippetlookup
SearchSsearch.yasnippetlookup
CheckCcheck.yasnippetlookup
SearchAboutSAsearchabout.yasnippetlookup
SearchPatternSPsearchpattern.yasnippetlookup
matchmatchmatch.yasnippetmisc
RequireReqrequire.yasnippetmisc
InfixInfinfix.yasnippetmisc
ififif.yasnippetmisc
NotationNotanotation.yasnippetmisc
forallfaforall.yasnippetmisc

cperl-mode

namekeyfilenamegroupdesc

cpp-omnet-mode

namekeyfilenamegroupdesc
emit_signalemitemit_signal
omnetomnetomnet
EVevEV
parameter_omnetppparparameter_omnetpp
intuniformintuniintuniform
mathmathmath
uniformuniuniform
scheduleAtschedscheduleAt
nannannan

crystal-mode

namekeyfilenamegroupdesc
reduce(...) { |...| ... }redred
else ...elel
def ... enddefdef
while ... endwhilewhile
module ... endmodmod
for ... in ...; ... endforinforin
each_cons(...) { |...| ... }eaceac
each_index { |i| ... }eaieai
if ... endifif
forforfor
each_with_index { |e, i| ... }eawieawi
class ... endclscls
if ... else ... endifeife
reject { |...| ... }rejectreject
upto(...) { |n| ... }uptupt
require "..."requirereq
select { |...| ... }selectselect
when ... endwhenwhen
zip(...) { |...| ... }zipzip
each { |...| ... }eaea
any? { |...| ... }anyany
include Moduleincincgeneral
map { |...| ... }mapmap
case ... endcasecase
initinitinit
elsif ...esiesi

csharp-mode

namekeyfilenamegroupdesc
/// ... commentcomment
property ... ... { ... }propprop
/// ... commentcomment.1
using System....;usingusing.2
/// $1commentcomment.2
namespace .. { ... }namespacenamespace
/// ... commentcomment.3
public void Method { ... }methodmethod
Console.Write(...);cwwrite
Console.ReadLine(...);crlreadline
#region ... #endregionregionregion
class ... { ... }classclass
using ...;usingusing
using System;usingusing.1
try{...} catch (ex) {...}tctrycatch
private attribute ....; public property ... ... { ... }attribattrib.1
Console.WriteLine(...);cwlwriteline
mainmainmain
Console.Read(...);crread
private attribute ....;attribattrib
private _attribute ....; public Property ... ... { ... }attribattrib.2
foreach { ... }forefore

css-mode

namekeyfilenamegroupdesc
-vendor-prefix-vv
font-size: ...font-size: ...fs
padding-top: ...padding-top: ...pad.top
padding: ...padding: ...pad.pad
border size style colorborder size style colorbor
margin-right: ...margin-right: ...mar.right
background-image: ...background-image: ...bg.1
display: blockdisplay: blockdisp.block
margin-bottom: ...margin-bottom: ...mar.bottom
display: inlinedisplay: inlinedisp.inline
font-family: ...font-family: ...ff
padding: top right bottom leftpadding: top right bottom leftpad.padding
margin-top: ...margin-top: ...mar.top
margin: ...margin: ...mar.mar
padding-right: ...padding-right: ...pad.right
margin-left: ...margin-left: ...mar.left
background-color: ...background-color: ...bg
display: nonedisplay: nonedisp.none
padding-left: ...padding-left: ...pad.left
clear: ...clear: ...cl
padding-bottom: ...padding-bottom: ...pad.bottom
margin top right bottom leftmargin top right bottom leftmar.margin

d-mode

namekeyfilenamegroupdesc
struct … { … }structstruct
try … catch …tctc
while (…) { … }whilewhile
import …importim
if …ifif
foreach (e ; …) { … }fefe
version (ident) { … }versionversion
unittest { … }unittestunit
try … finally …tryftf
debugmdebugmdebugm
method … { … }methodme
if … elseifeife
return …returnr
class … { … }classclass
debugdebugdebug
try … catch … finallytcftcf
foreach_reverse (e ; …) { … }ferfer
int main(string[] args) { … }mainmain
enum … { … }enumenum

dart-mode

namekeyfilenamegroupdesc
StatefulWidgetsfwstatefulwidgetflutter
extextext
getsetgetsetgetset
importimpimport
funcaafunfunca
didChangeDependenciesdcddidchangedependenciesflutter
initStateisinitstateflutter
gettergetgetter
built_valuebltbuiltvaluedart
disposedisdisposeflutter
funfunfunc
forforfor
aclassaclsaclass
StatelessWidgetslwstatelesswidgetflutter
implimplimpl
partpartpart
classclsclass
foriforifori
mainmainmain
settersetsetter

data_sources

namekeyfilenamegroupdesc
google_project_datagoog_project_datagoogle_project_data
google_client_configgoog_client_configgoogle_client_config
google_compute_vpn_gateway_datagoog_compute_vpn_gateway_datagoogle_compute_vpn_gateway_data
google_storage_object_signed_urlgoog_storage_object_signed_urlgoogle_storage_object_signed_url
google_compute_network_datagoog_compute_network_datagoogle_compute_network_data
google_service_account_datagoog_service_account_datagoogle_service_account_data
google_container_engine_versionsgoog_container_engine_versionsgoogle_container_engine_versions
google_compute_image_datagoog_compute_image_datagoogle_compute_image_data
google_iam_rolegoog_iam_rolegoogle_iam_role
google_compute_subnetwork_datagoog_compute_subnetwork_datagoogle_compute_subnetwork_data
google_compute_region_instance_groupgoog_compute_region_instance_groupgoogle_compute_region_instance_group
google_compute_ssl_policy_datagoog_compute_ssl_policy_datagoogle_compute_ssl_policy_data
google_compute_default_service_accountgoog_compute_default_service_accountgoogle_compute_default_service_account
google_kms_secretgoog_kms_secretgoogle_kms_secret
google_folder_datagoog_folder_datagoogle_folder_data
google_project_services_datagoog_project_services_datagoogle_project_services_data
google_service_account_key_datagoog_service_account_key_datagoogle_service_account_key_data
google_compute_forwarding_rule_datagoog_compute_forwarding_rule_datagoogle_compute_forwarding_rule_data
google_compute_regionsgoog_compute_regionsgoogle_compute_regions
google_organizationgoog_organizationgoogle_organization
google_storage_project_service_accountgoog_storage_project_service_accountgoogle_storage_project_service_account
google_cloudfunctions_function_datagoog_cloudfunctions_function_datagoogle_cloudfunctions_function_data
google_container_registry_repositorygoog_container_registry_repositorygoogle_container_registry_repository
google_compute_zonesgoog_compute_zonesgoogle_compute_zones
google_billing_accountgoog_billing_accountgoogle_billing_account
google_compute_instance_datagoog_compute_instance_datagoogle_compute_instance_data
google_container_cluster_datagoog_container_cluster_datagoogle_container_cluster_data
google_compute_lb_ip_rangesgoog_compute_lb_ip_rangesgoogle_compute_lb_ip_ranges
google_container_registry_imagegoog_container_registry_imagegoogle_container_registry_image
google_netblock_ip_rangesgoog_netblock_ip_rangesgoogle_netblock_ip_ranges
google_compute_address_datagoog_compute_address_datagoogle_compute_address_data
google_iam_policygoog_iam_policygoogle_iam_policy
google_compute_global_address_datagoog_compute_global_address_datagoogle_compute_global_address_data
google_dns_managed_zone_datagoog_dns_managed_zone_datagoogle_dns_managed_zone_data
google_compute_backend_service_datagoog_compute_backend_service_datagoogle_compute_backend_service_data
google_compute_instance_group_datagoog_compute_instance_group_datagoogle_compute_instance_group_data
google_active_foldergoog_active_foldergoogle_active_folder

dataflow_resources

namekeyfilenamegroupdesc
google_dataflow_jobgoog_dataflow_jobgoogle_dataflow_job

dataproc_resources

namekeyfilenamegroupdesc
google_dataproc_clustergoog_dataproc_clustergoogle_dataproc_cluster
google_dataproc_jobgoog_dataproc_jobgoogle_dataproc_job

definitions

namekeyfilenamegroupdesc
InductiveIndinductive.yasnippetdefinitions
DefinitionDefdefinition.yasnippetdefinitions
funfunfun.yasnippetdefinitions
FixpointFixpfixpoint.yasnippetdefinitions
Fixpoint-withFixpwfixpoint-with.yasnippetdefinitions

dix-mode

namekeyfilenamegroupdesc
elementpar
elementsltlit-tag
elementscchoose

element

pp
element
section
wwith-param
elementsllit
elementswwhen
elementscclip
in monodix sectione-in-mono-section
elementsllet
elementsootherwise
elementsdef
mcall-macro
elementsvvar
elementpardef
in pardefse-in-pardef
elements

dns_resources

namekeyfilenamegroupdesc
google_dns_managed_zonegoog_dns_managed_zonegoogle_dns_managed_zone
google_dns_record_setgoog_dns_record_setgoogle_dns_record_set

dockerfile-mode

namekeyfilenamegroupdesc
dockerizedockerizedockerize

elixir-mode

namekeyfilenamegroupdesc
hcallhcallhcall
function-one-linedffunction-one-line
callcallcall
castcastcast
defmoduledefmoduledefmodule
dododo
defdefdef
docdocdoc
hinfohinfohinfo
defmodule XXX enddmdefmodule_filename
unlessunlessunless
ififif
iopiopiop
forforfor
defpdefpdefp
receivercvreceive
if-elseifeife
moduledocmdocmdoc
fnfnfn
condcondcond
wtewtewte
wtwtwt
testtesttest
Inspect valueiinspect
casecasecase
ioioio
afterafterafter
functiondfunfunction
prypryprydebug
hcasthcasthcast
defmacrodefmacrodefmacro
defmacropdefmacropdefmacrop

emacs-lisp-mode

namekeyfilenamegroupdesc
buffer-substring-no-propertiesbuffer-substring-no-propertiesbuffer-substring-no-properties
notnotnot
save-buffersave-buffersave-buffer
save-excursionsave-excursionsave-excursion
vectorvectorvector
use-package bindingupbuse-package-binding
bounds-of-thing-at-pointbounds-of-thing-at-pointbounds-of-thing-at-point
global-set-keyglobal-set-keyglobal-set-key
shouldshshould
thing-at-pointthing-at-pointthing-at-point
expand-file-nameexpand-file-nameexpand-file-name
buffer-substringbuffer-substringbuffer-substring
condition-casecondition-casecondition-case
define-keydefine-keydefine-key
grab buffer substringgrab buffer substringgrabstring
use-packageupuse-package
re-search-backwardre-search-backwardre-search-backward
buffer-modified-pbuffer-modified-pbuffer-modified-p
forward-lineforward-lineforward-line
delete-regiondelete-regiondelete-region
defundefdefun
autoloadautoloadautoload
nthnthnth
yes-or-no-pyonpyes-or-no-p
re-search-forwardre-search-forwardre-search-forward
delete-directorydelete-directorydelete-directory
fboundpfboundpfboundp
custom-autoloadcustom-autoloadcustom-autoload
set-file-modesset-file-modesset-file-modes
insert-file-contentsinsert-file-contentsinsert-file-contents
package headerheaderheader
file-name-sans-extensionfile-name-sans-extensionfile-name-sans-extension
grab word under cursorgrabthinggrabthing
formatfformat
lambdalamlambda
widget-getwidget-getwidget-get
copy-filecopy-filecopy-file
a function that process a filea function that process a filefile.process
putputput
forward-charforward-charforward-char
interactiveinteractiveinteractive
beginning-of-linebeginning-of-linebeginning-of-line
looking-atlooking-atlooking-at
getgetget
file-name-directoryfile-name-directoryfile-name-directory
backward-charbackward-charbackward-char
defaliasdefaliasdefalias
search-backwardsearch-backwardsearch-backward
match-beginningmatch-beginningmatch-beginning
replace-regexp-in-stringreplace-regexp-in-stringreplace-regexp-in-string
arefarefaref
file-relative-namefile-relative-namefile-relative-name
defconstconstconst
mapcmapcmapc
asetasetaset
make-local-variablemake-local-variablemake-local-variable
Command that works on region or wordCommand that works on region or wordword-or-region
region-active-pregion-active-pregion-active-p
skip-chars-backwardskip-chars-backwardskip-chars-backward
delete-filedelete-filedelete-file
match-stringmatch-stringmatch-string
file-name-nondirectoryfile-name-nondirectoryfile-name-nondirectory
process marked files in diredprocess marked files in direddired.process_marked
defvardefvardefvar
region-endregion-endregion-end
search-forward-regexpsearch-forward-regexpsearch-forward-regexp
minor_modeminorminor_mode
with-current-bufferwith-current-bufferwith-current-buffer
search-forwardsearch-forwardsearch-forward
memqmemqmemq
pointpointpoint
assqassqassq
string=string=string=
delete-chardelete-chardelete-char
line-beginning-positionline-beginning-positionline-beginning-position
defcustomdefcustomdefcustom
substringsubstringsubstring
make-directorymake-directorymake-directory
messagemessagemessage
buffer-file-namebuffer-file-namebuffer-file-name
kill-bufferkill-bufferkill-buffer
whenwwhen
set-bufferset-bufferset-buffer
condcondcond
point-minpoint-minpoint-min
replace-regexpreplace-regexpreplace-regexp
letletlet
current-buffercurrent-buffercurrent-buffer
copy-directorycopy-directorycopy-directory
ororor
setqsetqsetq
match-endmatch-endmatch-end
read lines of a fileread lines of a filefile.read-lines
end-of-lineend-of-lineend-of-line
split-stringsplit-stringsplit-string
set-markset-markset-mark
insertinsertinsert
find-filefind-filefind-file
ert-deftestedtert-deftest
directory-filesdirectory-filesdirectory-files
number-to-stringnumber-to-stringnumber-to-string
string-matchstring-matchstring-match
point-maxpoint-maxpoint-max
file-name-extensionfile-name-extensionfile-name-extension
andandand
errorerrorerror
rename-filerename-filerename-file
search-backward-regexpsearch-backward-regexpsearch-backward-regexp
skip-chars-forwardskip-chars-forwardskip-chars-forward
kbdkbdkbd
region-beginningregion-beginningregion-beginning
line-end-positionline-end-positionline-end-position
word_regexp<word_regexp
add-hookadd-hookadd-hook
goto-chargoto-chargoto-char
string-to-numberstring-to-numberstring-to-number

endpoints_resources

namekeyfilenamegroupdesc
google_endpoints_servicegoog_endpoints_servicegoogle_endpoints_service

enh-ruby-mode

namekeyfilenamegroupdesc

ensime-mode

namekeyfilenamegroupdesc

erc-mode

namekeyfilenamegroupdesc
blistbblist
helphhelp

erlang-mode

namekeyfilenamegroupdesc
loop(...) -> receive _ -> loop(...) end.loop(...) -> receive _ -> loop(...) end.loop
-import([]).-import([]).imp
-undef(...).-undef(...).undef
receive after ... -> ... endreceive after ... -> ... endrcv.after
-define(...,...).-define(...,...).def
-ifdef(...). ... -endif.-ifdef(...). ... -endif.ifdef
-module().-module().mod
if ... -> ... ; true -> ... endif ... -> ... ; true -> ... endif
begin ... endbegin ... endbegin
-record(...,{...}).-record(...,{...}).rec
-behaviour(...).-behaviour(...).beh
-compile(...).-compile(...).compile
-export([]).-export([]).exp
fun (...) -> ... endfun (...) -> ... endfun
-include("...").-include("...").inc
-ifndef(...). ... -endif.-ifndef(...). ... -endif.ifndef
case ... of ... endcase ... of ... endcase
try ... of ... catch after endtry ... of ... catch after endtry
after ... ->after ... ->after
receive ... -> ... endreceive ... -> ... endrcv
-include_lib("...").-include_lib("...").inc.lib

f90-mode

namekeyfilenamegroupdesc
subroutine .. end subroutinesubroutinesubroutine
double precisiondouble precisiondp
do ... end do ...dodo
block datablock databd
while ... end while ...whilewhile
read (*,*)read (*,*)re
module ... end module ...modulemodule
pure function ... end function ...pure funcpuref
forall ... end forall ...forallforall
if then end ifif then end ifif
complexcomplexcx
parameterparameterpa
intrinsicintrinsicintr
logicallogicall
double complexdouble complexdc
charactercharacterch
includeincludeinc
write (*,*)write (*,*)wr
pure subroutine .. end subroutinepure subroutinepures
until ... end until ...untiluntil
function ... end function ...functionfunction
continuecontinuec
program .. end programprogramprogram
implicit noneimplicit nonein
where ... end where ...wherewhere

faust-mode

namekeyfilenamegroupdesc
importimimport
parpapar
vbargraphvbvbargraph
declare authordadeclareauthor
hbargraphhbhbargraph
hsliderhshslider
buttonbubutton
hgrouphghgroup
declare versiondvdeclareversion
vslidervsvslider
headerheheader
checkboxchcheckbox
processxpxprocessx
componentcocomponent
prodmuprod
nentrynenentry
declare licensedldeclarelicense
processprprocess
sumsusum
rulerurule
declarededeclare
casecacase
withwiwith
vgroupvgvgroup
declare namedndeclarename
tgrouptgtgroup
seqseseq

filestore_resources

namekeyfilenamegroupdesc
google_filestore_instancegoog_filestore_instancegoogle_filestore_instance

fish-mode

namekeyfilenamegroupdesc
bang!bang
while loopwhilewhile
if ... endifif
for loopforfor
if ... ... else ... endifeife
switchswsw
breakpointbpbp
begin ... endblockblock
functionfunctionfunction

fundamental-mode

namekeyfilenamegroupdesc
current-date-and-timedtcurrent-date-and-time
Mode line-*-mode-line
current-dateddcurrent-date

gcp_resources

namekeyfilenamegroupdesc
google_organization_iam_membergoog_organization_iam_membergoogle_organization_iam_member
google_project_usage_export_bucketgoog_project_usage_export_bucketgoogle_project_usage_export_bucket
google_service_account_iam_policygoog_service_account_iam_policygoogle_service_account_iam_policy
google_projectgoog_projectgoogle_project
google_billing_account_iam_policygoog_billing_account_iam_policygoogle_billing_account_iam_policy
google_service_account_iam_bindinggoog_service_account_iam_bindinggoogle_service_account_iam_binding
google_folder_iam_policygoog_folder_iam_policygoogle_folder_iam_policy
google_service_accountgoog_service_accountgoogle_service_account
google_project_servicegoog_project_servicegoogle_project_service
google_service_account_keygoog_service_account_keygoogle_service_account_key
google_project_organization_policygoog_project_organization_policygoogle_project_organization_policy
google_organization_iam_bindinggoog_organization_iam_bindinggoogle_organization_iam_binding
google_project_iam_bindinggoog_project_iam_bindinggoogle_project_iam_binding
google_folder_iam_membergoog_folder_iam_membergoogle_folder_iam_member
google_project_iam_policygoog_project_iam_policygoogle_project_iam_policy
google_project_iam_custom_rolegoog_project_iam_custom_rolegoogle_project_iam_custom_role
google_service_account_iam_membergoog_service_account_iam_membergoogle_service_account_iam_member
google_billing_account_iam_bindinggoog_billing_account_iam_bindinggoogle_billing_account_iam_binding
google_organization_policygoog_organization_policygoogle_organization_policy
google_organization_iam_policygoog_organization_iam_policygoogle_organization_iam_policy
google_project_iam_membergoog_project_iam_membergoogle_project_iam_member
google_folder_organization_policygoog_folder_organization_policygoogle_folder_organization_policy
google_organization_iam_custom_rolegoog_organization_iam_custom_rolegoogle_organization_iam_custom_role
google_resource_manager_liengoog_resource_manager_liengoogle_resource_manager_lien
google_project_servicesgoog_project_servicesgoogle_project_services
google_foldergoog_foldergoogle_folder
google_folder_iam_bindinggoog_folder_iam_bindinggoogle_folder_iam_binding
google_billing_account_iam_membergoog_billing_account_iam_membergoogle_billing_account_iam_member

git-commit-mode

namekeyfilenamegroupdesc
typetypetype
referencesrefreferences
fixesfixfixes

go-mode

namekeyfilenamegroupdesc
fmt.Printf(...)prprintf
importimpimport
exampleexampleexample
var (...)varvar(
typetypetype
import (...)impimport(
benchmarkbenchbenchmark
ififif
lambda funclambdalambda
methodmthdmethod
elseelelse
if erroriferriferr
funcfuncfunc
constconstconst
forforfor
const (...)constconst(
testmaintestmaintestmain
selectselselect
for rangerangeforrange
defaultdefdefault
testattest
mapmapmap
parallel_benchmarkparbenchparallel_benchmark
func main()mainmain
func init()initinit
errorerrerror
debug fmt.Printfdddd
varvarvar
switchswswitch

google

namekeyfilenamegroupdesc
google_sql_databasegoog_sql_databasegoogle_sql_database
google_sql_ssl_certgoog_sql_ssl_certgoogle_sql_ssl_cert
google_sql_database_instancegoog_sql_database_instancegoogle_sql_database_instance
google_sql_usergoog_sql_usergoogle_sql_user
google_dataflow_jobgoog_dataflow_jobgoogle_dataflow_job
google_monitoring_uptime_check_configgoog_monitoring_uptime_check_configgoogle_monitoring_uptime_check_config
google_monitoring_alert_policygoog_monitoring_alert_policygoogle_monitoring_alert_policy
google_monitoring_notification_channelgoog_monitoring_notification_channelgoogle_monitoring_notification_channel
google_monitoring_groupgoog_monitoring_groupgoogle_monitoring_group
google_composer_environmentgoog_composer_environmentgoogle_composer_environment
google_cloudbuild_triggergoog_cloudbuild_triggergoogle_cloudbuild_trigger
google_compute_routegoog_compute_routegoogle_compute_route
google_compute_ssl_policygoog_compute_ssl_policygoogle_compute_ssl_policy
google_compute_project_metadatagoog_compute_project_metadatagoogle_compute_project_metadata
google_compute_health_checkgoog_compute_health_checkgoogle_compute_health_check
google_compute_region_autoscalergoog_compute_region_autoscalergoogle_compute_region_autoscaler
google_compute_attached_diskgoog_compute_attached_diskgoogle_compute_attached_disk
google_compute_subnetwork_iam_bindinggoog_compute_subnetwork_iam_bindinggoogle_compute_subnetwork_iam_binding
google_compute_shared_vpc_service_projectgoog_compute_shared_vpc_service_projectgoogle_compute_shared_vpc_service_project
google_compute_instancegoog_compute_instancegoogle_compute_instance
google_compute_instance_group_managergoog_compute_instance_group_managergoogle_compute_instance_group_manager
google_compute_router_natgoog_compute_router_natgoogle_compute_router_nat
google_compute_target_https_proxygoog_compute_target_https_proxygoogle_compute_target_https_proxy
google_compute_global_addressgoog_compute_global_addressgoogle_compute_global_address
google_compute_subnetwork_iam_policygoog_compute_subnetwork_iam_policygoogle_compute_subnetwork_iam_policy
google_compute_http_health_checkgoog_compute_http_health_checkgoogle_compute_http_health_check
google_compute_region_backend_servicegoog_compute_region_backend_servicegoogle_compute_region_backend_service
google_compute_networkgoog_compute_networkgoogle_compute_network
google_compute_autoscalergoog_compute_autoscalergoogle_compute_autoscaler
google_compute_project_metadata_itemgoog_compute_project_metadata_itemgoogle_compute_project_metadata_item
google_compute_region_diskgoog_compute_region_diskgoogle_compute_region_disk
google_compute_target_poolgoog_compute_target_poolgoogle_compute_target_pool
google_compute_diskgoog_compute_diskgoogle_compute_disk
google_compute_vpn_tunnelgoog_compute_vpn_tunnelgoogle_compute_vpn_tunnel
google_compute_target_ssl_proxygoog_compute_target_ssl_proxygoogle_compute_target_ssl_proxy
google_compute_instance_templategoog_compute_instance_templategoogle_compute_instance_template
google_compute_ssl_certificategoog_compute_ssl_certificategoogle_compute_ssl_certificate
google_compute_backend_servicegoog_compute_backend_servicegoogle_compute_backend_service
google_compute_global_forwarding_rulegoog_compute_global_forwarding_rulegoogle_compute_global_forwarding_rule
google_compute_routergoog_compute_routergoogle_compute_router
google_compute_https_health_checkgoog_compute_https_health_checkgoogle_compute_https_health_check
google_compute_vpn_gatewaygoog_compute_vpn_gatewaygoogle_compute_vpn_gateway
google_compute_interconnect_attachmentgoog_compute_interconnect_attachmentgoogle_compute_interconnect_attachment
google_compute_region_instance_group_managergoog_compute_region_instance_group_managergoogle_compute_region_instance_group_manager
google_compute_instance_from_templategoog_compute_instance_from_templategoogle_compute_instance_from_template
google_compute_security_policygoog_compute_security_policygoogle_compute_security_policy
google_compute_addressgoog_compute_addressgoogle_compute_address
google_compute_firewallgoog_compute_firewallgoogle_compute_firewall
google_compute_snapshotgoog_compute_snapshotgoogle_compute_snapshot
google_compute_router_peergoog_compute_router_peergoogle_compute_router_peer
google_compute_subnetwork_iam_membergoog_compute_subnetwork_iam_membergoogle_compute_subnetwork_iam_member
google_compute_instance_groupgoog_compute_instance_groupgoogle_compute_instance_group
google_compute_target_http_proxygoog_compute_target_http_proxygoogle_compute_target_http_proxy
google_compute_shared_vpc_host_projectgoog_compute_shared_vpc_host_projectgoogle_compute_shared_vpc_host_project
google_compute_target_tcp_proxygoog_compute_target_tcp_proxygoogle_compute_target_tcp_proxy
google_compute_router_interfacegoog_compute_router_interfacegoogle_compute_router_interface
google_compute_network_peeringgoog_compute_network_peeringgoogle_compute_network_peering
google_compute_forwarding_rulegoog_compute_forwarding_rulegoogle_compute_forwarding_rule
google_compute_url_mapgoog_compute_url_mapgoogle_compute_url_map
google_compute_imagegoog_compute_imagegoogle_compute_image
google_compute_subnetworkgoog_compute_subnetworkgoogle_compute_subnetwork
google_compute_backend_bucketgoog_compute_backend_bucketgoogle_compute_backend_bucket
google_service_networking_connectiongoog_service_networking_connectiongoogle_service_networking_connection
google_storage_default_object_access_controlgoog_storage_default_object_access_controlgoogle_storage_default_object_access_control
google_storage_bucket_aclgoog_storage_bucket_aclgoogle_storage_bucket_acl
google_storage_notificationgoog_storage_notificationgoogle_storage_notification
google_storage_bucket_iam_membergoog_storage_bucket_iam_membergoogle_storage_bucket_iam_member
google_storage_object_access_controlgoog_storage_object_access_controlgoogle_storage_object_access_control
google_storage_bucket_iam_bindinggoog_storage_bucket_iam_bindinggoogle_storage_bucket_iam_binding
google_storage_default_object_aclgoog_storage_default_object_aclgoogle_storage_default_object_acl
google_storage_object_aclgoog_storage_object_aclgoogle_storage_object_acl
google_storage_bucket_iam_policygoog_storage_bucket_iam_policygoogle_storage_bucket_iam_policy
google_storage_bucketgoog_storage_bucketgoogle_storage_bucket
google_storage_bucket_objectgoog_storage_bucket_objectgoogle_storage_bucket_object
google_project_datagoog_project_datagoogle_project_data
google_client_configgoog_client_configgoogle_client_config
google_compute_vpn_gateway_datagoog_compute_vpn_gateway_datagoogle_compute_vpn_gateway_data
google_storage_object_signed_urlgoog_storage_object_signed_urlgoogle_storage_object_signed_url
google_compute_network_datagoog_compute_network_datagoogle_compute_network_data
google_service_account_datagoog_service_account_datagoogle_service_account_data
google_container_engine_versionsgoog_container_engine_versionsgoogle_container_engine_versions
google_compute_image_datagoog_compute_image_datagoogle_compute_image_data
google_iam_rolegoog_iam_rolegoogle_iam_role
google_compute_subnetwork_datagoog_compute_subnetwork_datagoogle_compute_subnetwork_data
google_compute_region_instance_groupgoog_compute_region_instance_groupgoogle_compute_region_instance_group
google_compute_ssl_policy_datagoog_compute_ssl_policy_datagoogle_compute_ssl_policy_data
google_compute_default_service_accountgoog_compute_default_service_accountgoogle_compute_default_service_account
google_kms_secretgoog_kms_secretgoogle_kms_secret
google_folder_datagoog_folder_datagoogle_folder_data
google_project_services_datagoog_project_services_datagoogle_project_services_data
google_service_account_key_datagoog_service_account_key_datagoogle_service_account_key_data
google_compute_forwarding_rule_datagoog_compute_forwarding_rule_datagoogle_compute_forwarding_rule_data
google_compute_regionsgoog_compute_regionsgoogle_compute_regions
google_organizationgoog_organizationgoogle_organization
google_storage_project_service_accountgoog_storage_project_service_accountgoogle_storage_project_service_account
google_cloudfunctions_function_datagoog_cloudfunctions_function_datagoogle_cloudfunctions_function_data
google_container_registry_repositorygoog_container_registry_repositorygoogle_container_registry_repository
google_compute_zonesgoog_compute_zonesgoogle_compute_zones
google_billing_accountgoog_billing_accountgoogle_billing_account
google_compute_instance_datagoog_compute_instance_datagoogle_compute_instance_data
google_container_cluster_datagoog_container_cluster_datagoogle_container_cluster_data
google_compute_lb_ip_rangesgoog_compute_lb_ip_rangesgoogle_compute_lb_ip_ranges
google_container_registry_imagegoog_container_registry_imagegoogle_container_registry_image
google_netblock_ip_rangesgoog_netblock_ip_rangesgoogle_netblock_ip_ranges
google_compute_address_datagoog_compute_address_datagoogle_compute_address_data
google_iam_policygoog_iam_policygoogle_iam_policy
google_compute_global_address_datagoog_compute_global_address_datagoogle_compute_global_address_data
google_dns_managed_zone_datagoog_dns_managed_zone_datagoogle_dns_managed_zone_data
google_compute_backend_service_datagoog_compute_backend_service_datagoogle_compute_backend_service_data
google_compute_instance_group_datagoog_compute_instance_group_datagoogle_compute_instance_group_data
google_active_foldergoog_active_foldergoogle_active_folder
google_binary_authorization_policygoog_binary_authorization_policygoogle_binary_authorization_policy
google_binary_authorization_attestorgoog_binary_authorization_attestorgoogle_binary_authorization_attestor
google_pubsub_subscriptiongoog_pubsub_subscriptiongoogle_pubsub_subscription
google_pubsub_subscription_iam_membergoog_pubsub_subscription_iam_membergoogle_pubsub_subscription_iam_member
google_pubsub_topic_iam_policygoog_pubsub_topic_iam_policygoogle_pubsub_topic_iam_policy
google_pubsub_subscription_iam_bindinggoog_pubsub_subscription_iam_bindinggoogle_pubsub_subscription_iam_binding
google_pubsub_topicgoog_pubsub_topicgoogle_pubsub_topic
google_pubsub_subscription_iam_policygoog_pubsub_subscription_iam_policygoogle_pubsub_subscription_iam_policy
google_pubsub_topic_iam_bindinggoog_pubsub_topic_iam_bindinggoogle_pubsub_topic_iam_binding
google_pubsub_topic_iam_membergoog_pubsub_topic_iam_membergoogle_pubsub_topic_iam_member
google_filestore_instancegoog_filestore_instancegoogle_filestore_instance
google_app_engine_applicationgoog_app_engine_applicationgoogle_app_engine_application
google_container_analysis_notegoog_container_analysis_notegoogle_container_analysis_note
google_runtimeconfig_variablegoog_runtimeconfig_variablegoogle_runtimeconfig_variable
google_runtimeconfig_configgoog_runtimeconfig_configgoogle_runtimeconfig_config
google_cloudiot_registrygoog_cloudiot_registrygoogle_cloudiot_registry
google_kms_crypto_key_iam_membergoog_kms_crypto_key_iam_membergoogle_kms_crypto_key_iam_member
google_kms_key_ring_iam_bindinggoog_kms_key_ring_iam_bindinggoogle_kms_key_ring_iam_binding
google_kms_key_ringgoog_kms_key_ringgoogle_kms_key_ring
google_kms_key_ring_iam_policygoog_kms_key_ring_iam_policygoogle_kms_key_ring_iam_policy
google_kms_crypto_key_iam_bindinggoog_kms_crypto_key_iam_bindinggoogle_kms_crypto_key_iam_binding
google_kms_key_ring_iam_membergoog_kms_key_ring_iam_membergoogle_kms_key_ring_iam_member
google_kms_crypto_keygoog_kms_crypto_keygoogle_kms_crypto_key
google_redis_instancegoog_redis_instancegoogle_redis_instance
google_logging_organization_exclusiongoog_logging_organization_exclusiongoogle_logging_organization_exclusion
google_logging_billing_account_exclusiongoog_logging_billing_account_exclusiongoogle_logging_billing_account_exclusion
google_logging_folder_exclusiongoog_logging_folder_exclusiongoogle_logging_folder_exclusion
google_logging_billing_account_sinkgoog_logging_billing_account_sinkgoogle_logging_billing_account_sink
google_logging_folder_sinkgoog_logging_folder_sinkgoogle_logging_folder_sink
google_logging_project_sinkgoog_logging_project_sinkgoogle_logging_project_sink
google_logging_organization_sinkgoog_logging_organization_sinkgoogle_logging_organization_sink
google_logging_project_exclusiongoog_logging_project_exclusiongoogle_logging_project_exclusion
google_organization_iam_membergoog_organization_iam_membergoogle_organization_iam_member
google_project_usage_export_bucketgoog_project_usage_export_bucketgoogle_project_usage_export_bucket
google_service_account_iam_policygoog_service_account_iam_policygoogle_service_account_iam_policy
google_projectgoog_projectgoogle_project
google_billing_account_iam_policygoog_billing_account_iam_policygoogle_billing_account_iam_policy
google_service_account_iam_bindinggoog_service_account_iam_bindinggoogle_service_account_iam_binding
google_folder_iam_policygoog_folder_iam_policygoogle_folder_iam_policy
google_service_accountgoog_service_accountgoogle_service_account
google_project_servicegoog_project_servicegoogle_project_service
google_service_account_keygoog_service_account_keygoogle_service_account_key
google_project_organization_policygoog_project_organization_policygoogle_project_organization_policy
google_organization_iam_bindinggoog_organization_iam_bindinggoogle_organization_iam_binding
google_project_iam_bindinggoog_project_iam_bindinggoogle_project_iam_binding
google_folder_iam_membergoog_folder_iam_membergoogle_folder_iam_member
google_project_iam_policygoog_project_iam_policygoogle_project_iam_policy
google_project_iam_custom_rolegoog_project_iam_custom_rolegoogle_project_iam_custom_role
google_service_account_iam_membergoog_service_account_iam_membergoogle_service_account_iam_member
google_billing_account_iam_bindinggoog_billing_account_iam_bindinggoogle_billing_account_iam_binding
google_organization_policygoog_organization_policygoogle_organization_policy
google_organization_iam_policygoog_organization_iam_policygoogle_organization_iam_policy
google_project_iam_membergoog_project_iam_membergoogle_project_iam_member
google_folder_organization_policygoog_folder_organization_policygoogle_folder_organization_policy
google_organization_iam_custom_rolegoog_organization_iam_custom_rolegoogle_organization_iam_custom_role
google_resource_manager_liengoog_resource_manager_liengoogle_resource_manager_lien
google_project_servicesgoog_project_servicesgoogle_project_services
google_foldergoog_foldergoogle_folder
google_folder_iam_bindinggoog_folder_iam_bindinggoogle_folder_iam_binding
google_billing_account_iam_membergoog_billing_account_iam_membergoogle_billing_account_iam_member
google_dns_managed_zonegoog_dns_managed_zonegoogle_dns_managed_zone
google_dns_record_setgoog_dns_record_setgoogle_dns_record_set
google_container_clustergoog_container_clustergoogle_container_cluster
google_container_node_poolgoog_container_node_poolgoogle_container_node_pool
google_bigtable_tablegoog_bigtable_tablegoogle_bigtable_table
google_bigtable_instancegoog_bigtable_instancegoogle_bigtable_instance
google_endpoints_servicegoog_endpoints_servicegoogle_endpoints_service
google_dataproc_clustergoog_dataproc_clustergoogle_dataproc_cluster
google_dataproc_jobgoog_dataproc_jobgoogle_dataproc_job
google_spanner_database_iam_policygoog_spanner_database_iam_policygoogle_spanner_database_iam_policy
google_spanner_database_iam_bindinggoog_spanner_database_iam_bindinggoogle_spanner_database_iam_binding
google_spanner_instance_iam_bindinggoog_spanner_instance_iam_bindinggoogle_spanner_instance_iam_binding
google_spanner_instance_iam_policygoog_spanner_instance_iam_policygoogle_spanner_instance_iam_policy
google_spanner_database_iam_membergoog_spanner_database_iam_membergoogle_spanner_database_iam_member
google_spanner_instancegoog_spanner_instancegoogle_spanner_instance
google_spanner_instance_iam_membergoog_spanner_instance_iam_membergoogle_spanner_instance_iam_member
google_spanner_databasegoog_spanner_databasegoogle_spanner_database
google_bigquery_tablegoog_bigquery_tablegoogle_bigquery_table
google_bigquery_datasetgoog_bigquery_datasetgoogle_bigquery_dataset
google_cloudfunctions_functiongoog_cloudfunctions_functiongoogle_cloudfunctions_function
google_sourcerepo_repositorygoog_sourcerepo_repositorygoogle_sourcerepo_repository

groovy-mode

namekeyfilenamegroupdesc
printlnprprintln
defdefdef
forforfor
classclassclass
dictdictdict
timestimestimes

haskell-mode

namekeyfilenamegroupdesc
datadadata
importimportimport
modulemodmodule
docddoc
instanceinsinstance
fixme dummyefixefix
casecasecase
pragmapragpragma
printprprint
new classclassnew class
funefunefunctione
main functionmainmain
funfunfunction

html-mode

namekeyfilenamegroupdesc
link.import
Doctype HTML 4.01 StrictDoctype HTML 4.01 Strictdoctype
......mailto
......html
meta
link.stylesheet-ie
script srcscriptscript.javascript-src
......th
textarea
formformform
DocType XHTML 1.0 framesetDocType XHTML 1.0 framesetdoctype.xhtml1
scriptscriptscript.javascript
Doctype HTML 5Doctype HTML 5doctype.html5
meta.http-equiv
DocType XHTML 1.1DocType XHTML 1.1doctype.xhtml1_1
link.stylesheet
DocType XHTML 1.0 TransitionalDocType XHTML 1.0 Transitionaldoctype.xhtml1_transitional
DocType XHTML 1.0 StrictDocType XHTML 1.0 Strictdoctype.xhtml1_strict
...
...
dt
...
...
dl
...
...
dd
......html.xmlns

hy-mode

namekeyfilenamegroupdesc
importimportimp
dododo
defdefdef
unlessunlessunless
ififif
forforfor
defmdefmdefm
classclassclass
reqreqreq
whenwhenwhen
condcondcond
letletlet
ifnifnifn
mainmainmain
sss

iot_core

namekeyfilenamegroupdesc
google_cloudiot_registrygoog_cloudiot_registrygoogle_cloudiot_registry

java-mode

namekeyfilenamegroupdesc
printfprintfprintf
importimpimport
main_classmain_classmain_class
printlnprprintln
constructorcconstructor
doc/*doc
returnrreturn
ififif
lambda\lambda
getterggetter
valuevalvalue
paramparamparam
methodmmethod
javadocdocjavadoc
define test methoddtdefine test method
file_classfilefile_class
forforfor
toStringtoStrtoString
overrideooverride
newnewnew
clsclscls
ifeifeife
apr_assertapr_assertapr_assert
testtesttest
foriforifori
assertasassert
trytrytry
equalseqequals
mainmainmain
this.this
testClasstctestClass
iteratoriteratoriterator
assertEqualsaeassertEqualstest

js-mode

namekeyfilenamegroupdesc
/* @flow */flowflow
eacheacheach
multiline-comment/**multiline-comment
try...catch statementtrytry-catch
importimpimp
elseelseel
exportDefaultFunctionedfedf
Comment Big Blockcmmbcmmb
setTimeOutstosto
destructingObjectdobdob
forEachfrefre
bindThisbndbnd
propertyGetpgepge
propertysetpsepse
ififif
anonymousFunctionanfnanfn
promisepromprom
const declarationconstconst
forforfor
importAsimaima
type-multiline-comment*tytype-multiline-comment
return-comment*@rreturn-comment
debuggerdbgdebugger
param-comment*@pparam-comment
namedFunctionnfnnfn
exportNamedFunctionenfenf
classclassclass
forInfinfin
alertalertal
importEverythingimeime
bound methodmetbmetb
exportDefaultexpexp
let declarationletlet
setIntervalstisti
exportAsexaexa
console.infocincinconsole
console.groupEndcgecgeconsole
console.clearcclcclconsole
console.groupcgrcgrconsole
console.timeEndctecteconsole
console.warncwacwaconsole
console.logclgclgconsole
console.countccoccoconsole
console.dircdicdiconsole
console.log (formatted)clocloconsole
console.errorcercerconsole
console.assertcascasconsole
constructorinitinit
new errorerrerror
forOffoffof
methodmetmet
type-inline-comment@tytype-inline-comment
exportDestructingexdexd
destructingArraydardar
comment (/* ... */)comment (/* ... */)com
functionffunction
importNoModuleNameimnimn
importDestructingimdimd
switchswswitch

js2-mode

namekeyfilenamegroupdesc

js3-mode

namekeyfilenamegroupdesc

julia-mode

namekeyfilenamegroupdesc
struct ... endstructstruct
do ... ... enddodo
while ... ... endwhilewhile
module ... ... endmodulemodule
if ... ... endifif
try ... catch ... finally ... endtrytryf
for ... ... endforfor
abstract type ... endatypeatype
if ... ... else ... endifeife
primitive type ... endptypeptype
begin ... endbeginbegin
quote ... endquotequote
macro(...) ... endmacromacro
using ...usingusing
let ... ... endletlet
function(...) ... endfunfun
mutable struct ... endmutstrmutstr
try ... catch ... endtrytry

key_management_service_resources

namekeyfilenamegroupdesc
google_kms_crypto_key_iam_membergoog_kms_crypto_key_iam_membergoogle_kms_crypto_key_iam_member
google_kms_key_ring_iam_bindinggoog_kms_key_ring_iam_bindinggoogle_kms_key_ring_iam_binding
google_kms_key_ringgoog_kms_key_ringgoogle_kms_key_ring
google_kms_key_ring_iam_policygoog_kms_key_ring_iam_policygoogle_kms_key_ring_iam_policy
google_kms_crypto_key_iam_bindinggoog_kms_crypto_key_iam_bindinggoogle_kms_crypto_key_iam_binding
google_kms_key_ring_iam_membergoog_kms_key_ring_iam_membergoogle_kms_key_ring_iam_member
google_kms_crypto_keygoog_kms_crypto_keygoogle_kms_crypto_key

kotlin-mode

namekeyfilenamegroupdesc
Anonymous classobjectanonymous
Singletonsingletonsingleton
Interfaceinterfaceinterface
Extension functionexfunexfun
Function returning nothingvoidvoid
Prints a string to System.outsoutsout
Prints a value to System.outsoutvsoutv
psvmpsvmpsvm
Closure (function without name)closureclosure
Function with no parametersfun0fun
Iterate over elements of iterable (for-in) loopiteriter
Extension read-write propertyexvarexvar
Prints a string to System.errserrserr
Extension read-only propertyexvalexval
Inserts 'if null' expressionifnifn
main() functionmainmain
Inserts 'if not null' expressioninninn

latex-mode

namekeyfilenamegroupdesc
moderncv-cvlanguagecvlangmoderncv-cvlanguage
notenonote
equationeqequation
alertblockalalertblock
textbfbtextbf
German single quotesgqgerman-quotes-single
bigcapbigcapbigcap
usepackagepkgusepackage
labellablabel
empheemph
ififif
German quotesgqqgerman-quotes
subsecsubsubsec
acronymacacronym
glsplgpglspl
captioncacaption
columnscolscolumns
moderncv-cvlistdoubleitemcvditemmoderncv-cvlistdoubleitem
descriptiondescdescription
sectionsecsection
prodprodprod
beginbeginbegin
full template of moderncv classmoderncvmoderncv
alignalialign
left and rightlrleft-right
item-item
moderncv-cvlistitemcvitemmoderncv-cvlistitem
sumsumsum
newcommandcmdnewcommand
moderncv-cventrycventrymoderncv-cventry
citeccite
includegraphicsigincludegraphics
binombinombinom
blockblblock
listinglstlisting
moviemoviemovie
enumerateenumenumerate
moderncv-cvlinecvlinemoderncv-cvline
subfiguresubfigsubfigure
documentclassdocdocumentclass
full template of article classarticlearticle
subfsfsubf
fracfracfrac
questionqquestion
GlsGcapgls
pythonpypython
newglossaryentryglnewglossaryentry
itemizeititemize
bigcupbigcupbigcup
glsggls
codecodecode
framefrframe
moderncv-cvcomputercvcompmoderncv-cvcomputer
labelcreflreflabelcref
intintint
algalgalg
figurefigfigure

lisp-interaction-mode

namekeyfilenamegroupdesc
defundefundefun

lisp-mode

namekeyfilenamegroupdesc
typecasttypecasttypecast
comment/*comment
dododo
ifnot (...) (...) ...ifnotifnot
formatprintformat
ififif
slotslotslot
forforfor
defpackagedefpdefpackage
ifelse (...) (...) (...) ...ifelseifelse
classclsclass
condcondcond
foreachforeachforeach

lookup

namekeyfilenamegroupdesc
LocateLlocate.yasnippetlookup
PrintPprint.yasnippetlookup
SearchSsearch.yasnippetlookup
CheckCcheck.yasnippetlookup
SearchAboutSAsearchabout.yasnippetlookup
SearchPatternSPsearchpattern.yasnippetlookup

lua-mode

namekeyfilenamegroupdesc
dododo
whilewhilewhile
ififif
for in pairspairspairs
for in ipairsipairsipairs
if elseifeife
if elseif elseeifeeife
requirerequirerequire
funfunfun
if elseifeifeif
repeat utilrepeatrepeat

m4-mode

namekeyfilenamegroupdesc
defdefdef

makefile-automake-mode

namekeyfilenamegroupdesc
noinst_HEADERSnoinstnoinst_HEADERS

makefile-bsdmake-mode

namekeyfilenamegroupdesc
ififif
PHONYphonyPHONY
gengengen
echoechoecho
var$var

makefile-gmake-mode

namekeyfilenamegroupdesc
addprefixapaddprefix
phonyphphony
notdirndnotdir
makemakemake
abspathabsabspath
addsuffixasaddsuffix
templatetemplatetemplate
shellshshell
special targets.special
wildcardwlwildcard
dirddir
patsubstpspatsubst

makefile-mode

namekeyfilenamegroupdesc
allallall
cleanclclean

malabar-mode

namekeyfilenamegroupdesc
variablevarvariable

markdown-mode

namekeyfilenamegroupdesc
Header 6h6h6
Header 2 (##)h2h2.1
Horizontal Rule (*)hrhr.2
UTF-8 encodingutf8utf8
Header 2 (-)h2h2.2
Reference Linkrlinkrlink
Header 4h4h4
Inline Code`back-quote
Linklinklink
Referenced Imagerimgrimg
Emphasis_emphasis
Strong emphasis__strong-emphasis
Reference Labelrlbrlb
Header 3h3h3
Unordered List --hyphen
Code blockcodecode
Highlighthighlighthighlight
Header 5h5h5
Horizontal Rule (-)hrhr.1
Header 1 (=)h1h1.2
Header 1 (#)h1h1.1
Ordered Listolordered-list
Unordered List ++plus
Imageimgimg

misc

namekeyfilenamegroupdesc
matchmatchmatch.yasnippetmisc
RequireReqrequire.yasnippetmisc
InfixInfinfix.yasnippetmisc
ififif.yasnippetmisc
NotationNotanotation.yasnippetmisc
forallfaforall.yasnippetmisc

nasm-mode

namekeyfilenamegroupdesc
Assembly Function Docdoxyfunction_doxygen_doc

ned-mode

namekeyfilenamegroupdesc
importimpimport
connectionsconnconnections
forforfor
submodulessubsubmodules
chanchanchan
simplesimplesimple
networknetnetwork

nesc-mode

namekeyfilenamegroupdesc
providesprovidesprovides
nxnxnx
eventeventevent
TOSSIMtossimTOSSIM
modulemodmodule
ifdefifdefifdef
simsimsim
commandcommandcommand
interfaceintinterface
dbgdbgdbg
uint8_tu8uint8_t
usesusesuses

nix-mode

namekeyfilenamegroupdesc
installCheckPhaseicinstallCheckPhase
package urlpupackage_url
checkPhasechcheckPhase
fixPhasefpfixupPhase
patchPhasepppatchPhase
configurePhasecpconfigurePhase
installPhaseipinstallPhase
distPhasedpdistPhase
callPackagecacallPackage
phasesphphases
unpackPhaseupunpackPhase
buildPhasebpbuildPhase
package githubpgpackage_github

nsis-mode

namekeyfilenamegroupdesc
includeincinclude
insert_macroiminsert_macro
ififif
sectionsecsection
messagemsgmessage
macromacromacro
outfileoutoutfile
outdir$outdir
definedefdefine
functionfunfunction
instdir$instdir

nxml-mode

namekeyfilenamegroupdesc
\n...\ntntag_newline
...ttag
......body
input
DocType XHTML 1.1DocType XHTML 1.1doctype
......html
meta
style
DocType XHTML 1.0 StrictDocType XHTML 1.0 Strictdoctype_xhtml1_strict
name
...ahref
DocType XHTML 1.0 TransitionalDocType XHTML 1.0 Transitionaldoctype_xhtml1_transitional
ttag_closing
formformform


br
link
...
...
quote
......img

octave-mode

namekeyfilenamegroupdesc
ififif
forforfor
functionfunfunction

org-mode

namekeyfilenamegroupdesc
optionsoptions
srcsrc
setupsetsetup
includeinclude
htmlhtml
emailemail
stylestyle
reveal_image_backgroundrv_image_background
entryentry_entry
datedate
languagelanguage
exampleexampleblock
emacs-lispemacs-lisp_emacs-lisp
exportexport
imageimage
videovideo
titletitle
descriptiondescdescription
embeddedemb_embedded
linklink
matrixmatrix_matrix
elispelisp_elisp
quotequote
umlumluml
verseverse
keywordskeywords
authorauthor
pythonpy_python
dotdot_dot
ipythonipy_ipython
imgimg_img
tabletable
reveal_single_colored_backgroundrv_background
figurefig_figure
centercenter

perl-mode

namekeyfilenamegroupdesc
if, elsif, else ...ifeeifee
... while ...xwhilexwhile
eval { ... } if ($@) { ... }evaleval
encodingencenc
... foreach ...xforexfore
bang!bang
while (...) { ... }whilewhile
strictstrictstrict
unless (...) { ... }unlessunless
if (...) { ... }ifif
for (...) { ... }forfor
if (...) { ... } else { ... }ifeife
sub ... { ... }subsub
... if ...xifxif
... unless ...xunlessxunless
foreach ... { ... }forefore

php-mode

namekeyfilenamegroupdesc
PHPDoc (multi-line)/**doc-comment-multilineannotation
elseifelseifelseif
interfaceinterfaceinterface
ififif
declare(ticks=)ticksticksdefinitions
getgetgetdefinitions
setsetsetdefinitions
PHPDoc @license MPL*license-mpllicense-doc-mplannotation
class extendsclseclsedefinitions
elseelseelsecontrol structure
PHPDoc @license*licenselicense-docannotation
constconstconstdefinitions
PHPDoc: @var (one-line)@varvar-onelinedefinitions
PHPDoc @param*paramparam-docannotation
PHPDoc @license GPLv2*license-gplv2license-doc-gplv2annotation
classclsclsdefinitions
psyshpsyshpsyshgeneric
var_export()vevegeneric
function :typefunction:function-return-type
function expr (closure)fnfndefinitions
var_dump()vdvdgeneric
__callStatic()__callStatic__callStaticMagic Methods
traittraittrait
PHPDoc @license MIT*license-mitlicense-doc-mitannotation
foreach (array as $key => $value)foreach=>foreach_value
trytrytry
PHPDoc @license Apache License*license-apachelicense-doc-apacheannotation
foreachforeachforeach
catchcatchcatch
fwrite(STDOUT)stdoutstdoutgeneric
definedefinedefinedefinitions
function statementfunctionfunctiondefinitions
PHPDoc: var*varvar-docdefinitions
PHPDoc @return*returnreturn-docannotation
Doc comment (one-line)*doc-comment-onelineannotation
PHPDoc @property*propertyproperty-docannotation
var_dump() exitvdevdegeneric
switchswitchswitch
__call()__call__callMagic Methods
class implementsclsiclsidefinitions

powershell-mode

namekeyfilenamegroupdesc
parameterparparameter
comment-based-helpcbhcomment-based-help
cmdletbindingcmdcmdletbinding
functionfunfunction

prog-mode

namekeyfilenamegroupdesc
commentcocomment
xxxxxxx
fixmefifixme
commentblockcobcommentblock
todottodo
commentlinecolcommentline

propositions

namekeyfilenamegroupdesc
HypothesesHyposhypotheses.yasnippetpropositions
VariablesVarsvariables.yasnippetpropositions
FactFactfact.yasnippetpropositions
TheoremThetheorem.yasnippetpropositions
RemarkRemremark.yasnippetpropositions
ExampleExpexample.yasnippetpropositions
ParametersParamparameter.yasnippetpropositions
CorollaryCorcorollary.yasnippetpropositions
LemmaLemlemma.yasnippetpropositions
InstanceInsinstance.yasnippetpropositions
AxiomAxiaxiom.yasnippetpropositions
HypothesisHypohypothesis.yasnippetpropositions
ConjectureConjconjecture.yasnippetpropositions
VariableVarvariable.yasnippetpropositions
PropositionProproposition.yasnippetpropositions

protobuf-mode

namekeyfilenamegroupdesc
syntaxsynsyntax
messagemsgmessage

pubsub_resources

namekeyfilenamegroupdesc
google_pubsub_subscriptiongoog_pubsub_subscriptiongoogle_pubsub_subscription
google_pubsub_subscription_iam_membergoog_pubsub_subscription_iam_membergoogle_pubsub_subscription_iam_member
google_pubsub_topic_iam_policygoog_pubsub_topic_iam_policygoogle_pubsub_topic_iam_policy
google_pubsub_subscription_iam_bindinggoog_pubsub_subscription_iam_bindinggoogle_pubsub_subscription_iam_binding
google_pubsub_topicgoog_pubsub_topicgoogle_pubsub_topic
google_pubsub_subscription_iam_policygoog_pubsub_subscription_iam_policygoogle_pubsub_subscription_iam_policy
google_pubsub_topic_iam_bindinggoog_pubsub_topic_iam_bindinggoogle_pubsub_topic_iam_binding
google_pubsub_topic_iam_membergoog_pubsub_topic_iam_membergoogle_pubsub_topic_iam_member

python-mode

namekeyfilenamegroupdesc
importimpimport
scriptscriptscript
fromfromfrom
setupsetupsetupdistribute
argargargargparser
proppropprop
assertNotEqualaneassertNotEqualtesting
parse_argspargsparse_argsargparser
init_docstring_numpyidninit_docstring_numpy
__str__strstrdunder methods
doctestdocdoctesttesting
passpspass
subclasssclssclsobject oriented
self.selfobject oriented
__len__len__len__dunder methods
#!#!bang
whilewhwhilecontrol structure
npnpnp
utf-8 encodingutf8utf8
Import pyplotpltpl
logger_namelnlogger_name
docddoc
assertFalseafassertFalsetesting
__repr__reprreprdunder methods
returnrreturn
Function Doxygen Docdoxy_funcfunction_doxygen_docdoxygen
assertInaiassertIntesting
supersupersuperobject oriented
setdefsetdefsetdef
with_statementfwwith_statementfuture
Class Doxygen Docdoxy_classclass_doxygen_docdoxygen
assertRaisesWitharwassertRaises.with
ififif
lambdalamlambda
self_without_dotsself_without_dotobject oriented
assertRaisesarassertRaisestesting
methodmmethodobject oriented
not_implnot_implnot_impl
__eq__eqeqdunder methods
regregreg
icicic.py
allallall
sizesizesize
loggingloglogging
for ... in ... : ...forfor
method_docstringmdmethod_docstringobject oriented
test_classtcstest_class
decdecdec
deftestdtdeftesttesting
classclsclsobject oriented
arg_positionalargarg_positionalargparser
assertEqualaeassertEqualtesting
ifeifeife
tryelsetrytryelse
__new__new__new__dunder methods
ipdb traceipdbipdbdebug
pdb tracepdbpdbdebug
celery pdbcdbcelery_pdbdebug
embedembedembed
__setitem__setit__setitem__dunder methods
__contains__cont__contains__dunder methods
assertTrueatassertTruetesting
__getitem__getit__getitem__dunder methods
unicode_literalsfuunicode_literalsfuture
parserparsparserargparser
metaclassmtmetaclassobject oriented
init_docstringidinit_docstring
__iter__iteriterdunder methods
interactintinteract
__unicode__ununicodedunder methods
function_docstring_numpyfdnfunction_docstring_numpydefinitions
printpprint
staticsmstatic
withwithwith
assertassasserttesting
method_docstring_numpymdnmethod_docstring_numpyobject oriented
trytrytry
pudb tracepudbpudbdebug
django_test_classtcsdjango_test_classtesting
dataclassdcdataclassobject oriented
mainmainmain
initinitinit
assetNotInanassertNotIntesting
listlilist
function_docstringfdfunction_docstringdefinitions
__enter__ent__enter__dunder methods
__exit__ex__exit__dunder methods
classmethodcmclassmethodobject oriented
selfassignsnselfassignobject oriented
functionffunctiondefinitions
enumenenumobject oriented
ifmainifmifmain
test_filetftest_file

racket-mode

namekeyfilenamegroupdesc
(case-lambda [... ...]...)case-lambdacaselambda
(do ([... ... ...]...) (... ...) ...)dodo
(match ... [... ...]...)matchmatch
(unless ...)unlessunless
(if ... ... ...)ifif
(lambda (...) ...)lambdalambda
(for... (...) ...)forfor
(when ...)whenwhen
(cond [... ...]...)condcond
(let... ([... ...]...) ...)letlet
(case ... [... ...]...)casecase
(define ... ...)definedefine

raku-mode

namekeyfilenamegroupdesc
unless guardungunless-guard
givengivengiven
for variableforvforv
whilewhilewhile
Subrutinesubsubrutine
multimultimulti
unlessununless
for variable is copyforvcforvc
ififif
Podpodpod
if elseifeif-else
Ternary Operatorternternary-operator
forforfor
if guardifgifguard
subsetsubsetsubset
elsififielsif
multi-line and in-the-middle commentscomulti-line-comment
whilegwhilegwhileguard
mainmainmain
for variable is rwforwforw
untiluntiluntil
for-guardforgfor-guard
untilguntilguntilguard

reason-mode

namekeyfilenamegroupdesc
functorfunctorfunctor
whilewhilewhile
modulemodulemodule
ififif
componentcomponentcomponent
forforfor
ifelseififelse
match case|match_case
letletlet
functionfuncfunction
switchswitchswitch

redis_resources

namekeyfilenamegroupdesc
google_redis_instancegoog_redis_instancegoogle_redis_instance

rjsx-mode

namekeyfilenamegroupdesc
reactNativeComponentWithStylesrncsrncs
reactNativePureComponentExportrnpcernpce
reactNativePureComponentrnpcrnpc
reactNativeComponentExportrncernce
reactNativeStylesrnstylernstyle
reactNativeImportimrnimrn
reactNativeComponentrncrnc
getDerivedStateFromPropsgdsfpgdsfp
reactFunctionMemoComponentrmcrmc
componentDidUpdatecdupcdup
propTypeOneOfTypeRequiredptetrptetr
propTypeNodeRequiredptndrptndr
reactClassCompomentPropTypesrccprccp
componentSetStateFuncssfssf
propTypeObjectOfptooptoo
propTypeAnyptanyptany
propTypeOneOfTypeptetptet
reactArrowFunctionExportComponentrafcerafce
hocComponenthochoc
reactClassExportPureComponentrpcerpce
propTypeBoolRequiredptbrptbr
propTypeEnumptepte
propTypeBoolptbptb
staticPropTpyesptypesptypes
import React, { PureComponent } & PropTypesimrpcpimrpcp
import React Routerimrrimrr
propTypeNodeptndptnd
reactClassCompomentrccrcc
import React, { memo } & PropTypesimrmpimrmp
propTypeElementptelptel
propTypeShapeRequiredptshrptshr
componentDidMountcdmcdm
destructStatecscs
import React, { Component } & PropTypesimrcpimrcp
componentRenderrenren
reactArrowFunctionComponentWithPropTypesrafcprafcp
createRefcrefcref
propTypeInstanceOfRequiredptirptir
createContextrcontextrcontext
import ReactDOMimrdimrd
componentSetStateObjectsstsst
propTypeFuncptfptf
propTypeNumberptnptn
shouldComponentUpdatescuscu
propTypeNumberRequiredptnrptnr
destructPropscpcp
propTypeEnumRequiredpterpter
propTypeObjectOfRequiredptoorptoor
import PropTypesimptimpt
propTypeObjectptopto
import React, { Component }imrcimrc
propTypeStringptspts
reactArrowFunctionComponentrafcrafc
componentStatestatestate
reactClassExportComponentrcerce
import React, { PureComponent }imrpcimrpc
reactClassExportComponentWithPropTypesrceprcep
import Reactimrimr
propTypeArrayptapta
forwardReffreffref
propTypeElementRequiredptelrptelr
emptyStateestest
propTypeShapeptshptsh
propTypeObjectRequiredptorptor
propTypeFuncRequiredptfrptfr
propTypeInstanceOfptipti
classConstructorrconstrconst
reactClassPureComponentWithPropTypesrpcprpcp
reactClassPureComponentrpcrpc
componentWillUnmountcwuncwun
componentPropspropsprops
propTypeArrayRequiredptarptar
reactFunctionMemoComponentWithPropTypesrmcprmcp
import React, { memo }imrmimrm
getSnapshotBeforeUpdategsbugsbu
propTypeStringRequiredptsrptsr
propTypeArrayOfptaoptao
propTypeArrayOfRequiredptaorptaor
import redux statementreduxredux
reactNativeClassComponentReduxrncreduxrncredux
reduxSelectorrxselectrxselect
mappingToPropsreduxmapreduxmap
reduxConstrxconstrxconst
hocComponentWithReduxhocreduxhocredux
reduxReducerrxreducerrxreducer
reduxActionrxactionrxaction
reactClassCompomentReduxrcreduxrcredux
setupReactNativeTestWithReduxsnrtestsnrtest
describeBlockdescdesc
setupTeststeststest
setupReactComponentTestWithReduxsrtestsrtest
itBlocktittit
testBlocktesttest
setupReactNativeTestsntestsntest
exportGraphQLexpgqlexpgql
graphQLForComponentgraphqlgraphql

rst-mode

namekeyfilenamegroupdesc
graphvizgraphgraphviz
graphgraphgraph
meta:meta
verbatim|verbatim
modulemodmodule
parsed_literalsrcparsed_literal
autofunctionautoautofunction
warningwarnwarning
digraphgraphdigraph
inheritanceinhinheritance
Chapter titlechapchapter
imageimgimage
Document titletittitle
termtermterm
Section titlesecsection
urlurlurl
autoclassautoautoclass
classclsclass
pausepausepausehieroglyph
codecodecode
automoduleautoautomodule
literatal includeincliteral_include
functionfunfunction

ruby-mode

namekeyfilenamegroupdesc
=begin rdoc ... =end=begin rdoc ... =end=b
def method_missing ... enddef method_missing ... endmm
strsstr
reduce(...) { |...| ... }reduce(...) { |...| ... }red
def ... enddefdef
test classtctest class
#!#!bang
while ... endwhile ... endwhile
deep_copy(...)deep_copy(...)dee
binding.pry_remoterpryrpry
module ... endmodmod
for ... in ...; ... endfor ... in ...; ... endforin
benchbenchbench
each_cons(...) { |...| ... }each_cons(...) { |...| ... }eac
each_index { |i| ... }each_index { |i| ... }eai
unless ... endunlessunlesscontrol structure
inject(...) { |...| ... }inject(...) { |...| ... }inject
if ... endif ... endif
collect { |...| ... }collect { |...| ... }collect
all? { |...| ... }all? { |...| ... }all
downto(...) { |n| ... }downto(...) { |n| ... }dow
forforfor
each_with_index { |e, i| ... }each_with_index { |e, i| ... }eawi
class ... endclass ... endcls
to_to_to_
if ... else ... endif ... else ... endife
attr_reader ...attr_reader ...r
:yields: arguments (rdoc):yields: arguments (rdoc)y
reject { |...| ... }reject { |...| ... }reject
if __FILE__ == $PROGRAM_NAME ... endif __FILE__ == $PROGRAM_NAME ... endapp
upto(...) { |n| ... }upto(...) { |n| ... }upt
formulaformformula
require "..."require "..."req
select { |...| ... }select { |...| ... }select
require_relativerequire_relativerel
when ... endwhen ... endwhen
zip(...) { |...| ... }zip(...) { |...| ... }zip
class << self ... endclass << self ... endcla
each { |...| ... }each { |...| ... }ea
attr_accessor ...attr_accessor ...rw
any? { |...| ... }any? { |...| ... }any
GLOB$GLOB
include Moduleincincgeneral
map { |...| ... }map { |...| ... }map
case ... endcase ... endcase
include EnumerableEnumEnumcollections
each_value { |val| ... }each_value { |val| ... }eav
delete_if { |...| ... }delete_if { |...| ... }deli
attr_writer ...attr_writer ...w
Benchmark.bmbm(...) do ... endBenchmark.bmbm(...) do ... endbm
detect { |...| ... }detect { |...| ... }det
tututu
initinitinit
Proc.new { |...| ... }procproc
until ... enduntil ... enduntilcontrol structure
attribute@attribute
# =># =>#
alias_method new, oldalias_method new, oldam
include Comparable; def <=> ... endinclude Comparable; def <=> ... endComp
binding.pryprypry
/usr/bin/ruby -wU/usr/bin/ruby -wUrb
times { |n| ... }times { |n| ... }tim

runtimeconfig_resources

namekeyfilenamegroupdesc
google_runtimeconfig_variablegoog_runtimeconfig_variablegoogle_runtimeconfig_variable
google_runtimeconfig_configgoog_runtimeconfig_configgoogle_runtimeconfig_config

rust-mode

namekeyfilenamegroupdesc
loop { ... }looploop
println!("{}", value);printlnprintln
impl Display for Type { fn fmt (...) }displaydisplay
impl From for Type { fn from(...) }fromfrom
struct TypeName { .. }structstruct
let mut pattern: type = expression;lettmlettm
impl FromStr for Type { fn from_str(...) }fromstrfromstr
impl Drop for Type { fn drop(...) }dropdrop
fn name(&self) -> Type { ... }fnsfns
extern crateeccrate
match expression { ... }matchmatch
#[warn(lint)]warnwarn
while expression { ... }whilewhile
type TypeName = TypeName;typetype
if expr { ... }ifif
while let pattern = expression { ... }whilelwhilel
impl Trait for Type { ... }impltimplt
for var in iterable { ... }forfor
#[deny(lint)]denydeny
#[cfg(option = "value")]cfg=cfg=
pub fn name() -> Type { ... }pfnrpfnr
pub fn name(&self) -> Type { ... }pfnspfns
pub fn new() { ... }newnew
pub fn name() { ... }pfnpfn
impl Type { ... }implimpl
if expression { ... } else { .. }ifeife
#![warn(lint)]warn!warn!
eprint!("{}", value);eprinteprint
fn name() { ... }fnfn
trait Type { ... }traittrait
union Type { ... }unionunion
closure||closure
macro_rules! name { (..) => (..); }macromacro
test moduletestmodtestmod
let pattern = expression;letlet
fn name(x: T) where T: Clone { ... }fnwfnw
if let pattern = expression { ... };iflifl
#[test] fn test_name() { .. }testtest
pattern => expression,casecase
#[allow(lint)]allowallow
print!("{}", value);printprint
let pattern: type = expression;lettlett
Resultresultresult
let mut pattern = expression;letmletm
CONSTANT: Type = value;staticstatic
assert!(predicate);assassert
#[cfg(option)]cfgcfg
eprintln!("{}", value);eprintlneprintln
fn main() { ... }mainmain
#![allow(lint)]allow!allow!
#![deny(lint)]deny!deny!
assert_eq!(expected, actual);asseqasserteq
fn name() -> Type { ... }fnrfnr
#[derive(Trait)]derivederive
pub fn name(x: T) where T: Clone { ... }pfnwpfnw
enum Type { ... }enumenum
spawn(proc() { ... });spawnspawn

rustic-mode

namekeyfilenamegroupdesc

scala-mode

namekeyfilenamegroupdesc
case class T(arg: A)cccc
element1 :: element2conscons
object name extends Tobob
def f(arg: T): R = {...}defdef
cc match { .. }matchmatch
case object Tcoco
/** ... */docdoc
if (cond) { .. }ifif
for { x <- xs } yieldforfor
object name extends Appappapp
value classvcvalueclass
case pattern =>casecase
List(..)lsls
try { .. } catch { case e => ..}trytry
def main(args: Array[String]) = { ... }mainmain
throw new Exceptionthrowthrow
docstring functiondocfundocfun

service_networking_resources

namekeyfilenamegroupdesc
google_service_networking_connectiongoog_service_networking_connectiongoogle_service_networking_connection

sh-mode

namekeyfilenamegroupdesc
the currently executing/sourced script's directoryscript-dirscript-dir
bang!bang
while loopwhilewhile
ififif
ifeifeife
safer bash settings for scriptss!safe-bang
selectselectselect
casecasecase
argsargsargs
until loopuntiluntil
functionffunction
for loopforfor loop

snippet-mode

namekeyfilenamegroupdesc
${ ... } field$ffield
contcontcont
elisp`elisp
Snippet headervarsvars
groupgroupgroup
${n:$(...)} mirror$mmirror

source_repositories_resources

namekeyfilenamegroupdesc
google_sourcerepo_repositorygoog_sourcerepo_repositorygoogle_sourcerepo_repository

spanner_resources

namekeyfilenamegroupdesc
google_spanner_database_iam_policygoog_spanner_database_iam_policygoogle_spanner_database_iam_policy
google_spanner_database_iam_bindinggoog_spanner_database_iam_bindinggoogle_spanner_database_iam_binding
google_spanner_instance_iam_bindinggoog_spanner_instance_iam_bindinggoogle_spanner_instance_iam_binding
google_spanner_instance_iam_policygoog_spanner_instance_iam_policygoogle_spanner_instance_iam_policy
google_spanner_database_iam_membergoog_spanner_database_iam_membergoogle_spanner_database_iam_member
google_spanner_instancegoog_spanner_instancegoogle_spanner_instance
google_spanner_instance_iam_membergoog_spanner_instance_iam_membergoogle_spanner_instance_iam_member
google_spanner_databasegoog_spanner_databasegoogle_spanner_database

sql-mode

namekeyfilenamegroupdesc
CONSTRAINT [..] PRIMARY KEY ...CONSTRAINT [..] PRIMARY KEY ...constraint
create procedure ...create procedure ...create.1
create table ...create table ...create
CONSTRAINT [..] FOREIGN KEY ...CONSTRAINT [..] FOREIGN KEY ...constraint.1
REFERENCES ...REFERENCES ...references
insertinsinsert
, ColumnName ColumnType NOT NULL..., ColumnName ColumnType NOT NULL...column

sql_resources

namekeyfilenamegroupdesc
google_sql_databasegoog_sql_databasegoogle_sql_database
google_sql_ssl_certgoog_sql_ssl_certgoogle_sql_ssl_cert
google_sql_database_instancegoog_sql_database_instancegoogle_sql_database_instance
google_sql_usergoog_sql_usergoogle_sql_user

stackdriver_logging_resources

namekeyfilenamegroupdesc
google_logging_organization_exclusiongoog_logging_organization_exclusiongoogle_logging_organization_exclusion
google_logging_billing_account_exclusiongoog_logging_billing_account_exclusiongoogle_logging_billing_account_exclusion
google_logging_folder_exclusiongoog_logging_folder_exclusiongoogle_logging_folder_exclusion
google_logging_billing_account_sinkgoog_logging_billing_account_sinkgoogle_logging_billing_account_sink
google_logging_folder_sinkgoog_logging_folder_sinkgoogle_logging_folder_sink
google_logging_project_sinkgoog_logging_project_sinkgoogle_logging_project_sink
google_logging_organization_sinkgoog_logging_organization_sinkgoogle_logging_organization_sink
google_logging_project_exclusiongoog_logging_project_exclusiongoogle_logging_project_exclusion

stackdriver_monitoring_resources

namekeyfilenamegroupdesc
google_monitoring_uptime_check_configgoog_monitoring_uptime_check_configgoogle_monitoring_uptime_check_config
google_monitoring_alert_policygoog_monitoring_alert_policygoogle_monitoring_alert_policy
google_monitoring_notification_channelgoog_monitoring_notification_channelgoogle_monitoring_notification_channel
google_monitoring_groupgoog_monitoring_groupgoogle_monitoring_group

storage_resources

namekeyfilenamegroupdesc
google_storage_default_object_access_controlgoog_storage_default_object_access_controlgoogle_storage_default_object_access_control
google_storage_bucket_aclgoog_storage_bucket_aclgoogle_storage_bucket_acl
google_storage_notificationgoog_storage_notificationgoogle_storage_notification
google_storage_bucket_iam_membergoog_storage_bucket_iam_membergoogle_storage_bucket_iam_member
google_storage_object_access_controlgoog_storage_object_access_controlgoogle_storage_object_access_control
google_storage_bucket_iam_bindinggoog_storage_bucket_iam_bindinggoogle_storage_bucket_iam_binding
google_storage_default_object_aclgoog_storage_default_object_aclgoogle_storage_default_object_acl
google_storage_object_aclgoog_storage_object_aclgoogle_storage_object_acl
google_storage_bucket_iam_policygoog_storage_bucket_iam_policygoogle_storage_bucket_iam_policy
google_storage_bucketgoog_storage_bucketgoogle_storage_bucket
google_storage_bucket_objectgoog_storage_bucket_objectgoogle_storage_bucket_object

swift-mode

namekeyfilenamegroupdesc
sortarrayofstringssortarrayofstringssortarrayofstrings
dispatchMaindispatchMaindispatchmain
prop-getsetprop-getsetprop
uiTableViewDelegateuitableViewDelegateuitableviewdelegate
whilewhilewhile
uiViewControllerLifecycleuiViewControllerLifecycleuiviewcontrollerlifecycle
forcaseforcaseforcase
initcoderinitcoderinitcoder
availableavailableavailable
if (...) { ... }ifif
dispatchAsyncdispatchAsyncdispatchasync
dispatchAfterdispatchAfterdispatchafter
funcfuncfunc
markmarkmark
uiCollectionViewDelegateuiCollectionViewDelegateuicollectionviewdelegate
uitableViewDataSourceuitableViewDataSourceuitableviewdatasource
documentDirectorydocumentDirectorydocumentdirectory
letletlet
uicollectionViewDataSourceuicollectionViewDataSourceuicollectionviewdatasource
uialertControlleruialertControlleruialertcontroller
trycatchtrycatchtrycatch
foriforifori
checkversioncheckversioncheckversion
varvarvar

tactics

namekeyfilenamegroupdesc
renamerenamerename.yasnippettactics
casecasecase.yasnippettactics
rewrite-rightrwrrewrite-right.yasnippettactics
rewriterwrewrite.yasnippettactics
destructdesdestruct.yasnippettactics
inductionindinduction.yasnippettactics
rewrite-leftrwlrewrite-left.yasnippettactics

terraform-mode

namekeyfilenamegroupdesc
datadatadata
modulemodmodule
variablevarvariable
outputoutputoutput
localslocalslocals
resourceresresource
providerprovprovider
google_sql_databasegoog_sql_databasegoogle_sql_database
google_sql_ssl_certgoog_sql_ssl_certgoogle_sql_ssl_cert
google_sql_database_instancegoog_sql_database_instancegoogle_sql_database_instance
google_sql_usergoog_sql_usergoogle_sql_user
google_dataflow_jobgoog_dataflow_jobgoogle_dataflow_job
google_monitoring_uptime_check_configgoog_monitoring_uptime_check_configgoogle_monitoring_uptime_check_config
google_monitoring_alert_policygoog_monitoring_alert_policygoogle_monitoring_alert_policy
google_monitoring_notification_channelgoog_monitoring_notification_channelgoogle_monitoring_notification_channel
google_monitoring_groupgoog_monitoring_groupgoogle_monitoring_group
google_composer_environmentgoog_composer_environmentgoogle_composer_environment
google_cloudbuild_triggergoog_cloudbuild_triggergoogle_cloudbuild_trigger
google_compute_routegoog_compute_routegoogle_compute_route
google_compute_ssl_policygoog_compute_ssl_policygoogle_compute_ssl_policy
google_compute_project_metadatagoog_compute_project_metadatagoogle_compute_project_metadata
google_compute_health_checkgoog_compute_health_checkgoogle_compute_health_check
google_compute_region_autoscalergoog_compute_region_autoscalergoogle_compute_region_autoscaler
google_compute_attached_diskgoog_compute_attached_diskgoogle_compute_attached_disk
google_compute_subnetwork_iam_bindinggoog_compute_subnetwork_iam_bindinggoogle_compute_subnetwork_iam_binding
google_compute_shared_vpc_service_projectgoog_compute_shared_vpc_service_projectgoogle_compute_shared_vpc_service_project
google_compute_instancegoog_compute_instancegoogle_compute_instance
google_compute_instance_group_managergoog_compute_instance_group_managergoogle_compute_instance_group_manager
google_compute_router_natgoog_compute_router_natgoogle_compute_router_nat
google_compute_target_https_proxygoog_compute_target_https_proxygoogle_compute_target_https_proxy
google_compute_global_addressgoog_compute_global_addressgoogle_compute_global_address
google_compute_subnetwork_iam_policygoog_compute_subnetwork_iam_policygoogle_compute_subnetwork_iam_policy
google_compute_http_health_checkgoog_compute_http_health_checkgoogle_compute_http_health_check
google_compute_region_backend_servicegoog_compute_region_backend_servicegoogle_compute_region_backend_service
google_compute_networkgoog_compute_networkgoogle_compute_network
google_compute_autoscalergoog_compute_autoscalergoogle_compute_autoscaler
google_compute_project_metadata_itemgoog_compute_project_metadata_itemgoogle_compute_project_metadata_item
google_compute_region_diskgoog_compute_region_diskgoogle_compute_region_disk
google_compute_target_poolgoog_compute_target_poolgoogle_compute_target_pool
google_compute_diskgoog_compute_diskgoogle_compute_disk
google_compute_vpn_tunnelgoog_compute_vpn_tunnelgoogle_compute_vpn_tunnel
google_compute_target_ssl_proxygoog_compute_target_ssl_proxygoogle_compute_target_ssl_proxy
google_compute_instance_templategoog_compute_instance_templategoogle_compute_instance_template
google_compute_ssl_certificategoog_compute_ssl_certificategoogle_compute_ssl_certificate
google_compute_backend_servicegoog_compute_backend_servicegoogle_compute_backend_service
google_compute_global_forwarding_rulegoog_compute_global_forwarding_rulegoogle_compute_global_forwarding_rule
google_compute_routergoog_compute_routergoogle_compute_router
google_compute_https_health_checkgoog_compute_https_health_checkgoogle_compute_https_health_check
google_compute_vpn_gatewaygoog_compute_vpn_gatewaygoogle_compute_vpn_gateway
google_compute_interconnect_attachmentgoog_compute_interconnect_attachmentgoogle_compute_interconnect_attachment
google_compute_region_instance_group_managergoog_compute_region_instance_group_managergoogle_compute_region_instance_group_manager
google_compute_instance_from_templategoog_compute_instance_from_templategoogle_compute_instance_from_template
google_compute_security_policygoog_compute_security_policygoogle_compute_security_policy
google_compute_addressgoog_compute_addressgoogle_compute_address
google_compute_firewallgoog_compute_firewallgoogle_compute_firewall
google_compute_snapshotgoog_compute_snapshotgoogle_compute_snapshot
google_compute_router_peergoog_compute_router_peergoogle_compute_router_peer
google_compute_subnetwork_iam_membergoog_compute_subnetwork_iam_membergoogle_compute_subnetwork_iam_member
google_compute_instance_groupgoog_compute_instance_groupgoogle_compute_instance_group
google_compute_target_http_proxygoog_compute_target_http_proxygoogle_compute_target_http_proxy
google_compute_shared_vpc_host_projectgoog_compute_shared_vpc_host_projectgoogle_compute_shared_vpc_host_project
google_compute_target_tcp_proxygoog_compute_target_tcp_proxygoogle_compute_target_tcp_proxy
google_compute_router_interfacegoog_compute_router_interfacegoogle_compute_router_interface
google_compute_network_peeringgoog_compute_network_peeringgoogle_compute_network_peering
google_compute_forwarding_rulegoog_compute_forwarding_rulegoogle_compute_forwarding_rule
google_compute_url_mapgoog_compute_url_mapgoogle_compute_url_map
google_compute_imagegoog_compute_imagegoogle_compute_image
google_compute_subnetworkgoog_compute_subnetworkgoogle_compute_subnetwork
google_compute_backend_bucketgoog_compute_backend_bucketgoogle_compute_backend_bucket
google_service_networking_connectiongoog_service_networking_connectiongoogle_service_networking_connection
google_storage_default_object_access_controlgoog_storage_default_object_access_controlgoogle_storage_default_object_access_control
google_storage_bucket_aclgoog_storage_bucket_aclgoogle_storage_bucket_acl
google_storage_notificationgoog_storage_notificationgoogle_storage_notification
google_storage_bucket_iam_membergoog_storage_bucket_iam_membergoogle_storage_bucket_iam_member
google_storage_object_access_controlgoog_storage_object_access_controlgoogle_storage_object_access_control
google_storage_bucket_iam_bindinggoog_storage_bucket_iam_bindinggoogle_storage_bucket_iam_binding
google_storage_default_object_aclgoog_storage_default_object_aclgoogle_storage_default_object_acl
google_storage_object_aclgoog_storage_object_aclgoogle_storage_object_acl
google_storage_bucket_iam_policygoog_storage_bucket_iam_policygoogle_storage_bucket_iam_policy
google_storage_bucketgoog_storage_bucketgoogle_storage_bucket
google_storage_bucket_objectgoog_storage_bucket_objectgoogle_storage_bucket_object
google_project_datagoog_project_datagoogle_project_data
google_client_configgoog_client_configgoogle_client_config
google_compute_vpn_gateway_datagoog_compute_vpn_gateway_datagoogle_compute_vpn_gateway_data
google_storage_object_signed_urlgoog_storage_object_signed_urlgoogle_storage_object_signed_url
google_compute_network_datagoog_compute_network_datagoogle_compute_network_data
google_service_account_datagoog_service_account_datagoogle_service_account_data
google_container_engine_versionsgoog_container_engine_versionsgoogle_container_engine_versions
google_compute_image_datagoog_compute_image_datagoogle_compute_image_data
google_iam_rolegoog_iam_rolegoogle_iam_role
google_compute_subnetwork_datagoog_compute_subnetwork_datagoogle_compute_subnetwork_data
google_compute_region_instance_groupgoog_compute_region_instance_groupgoogle_compute_region_instance_group
google_compute_ssl_policy_datagoog_compute_ssl_policy_datagoogle_compute_ssl_policy_data
google_compute_default_service_accountgoog_compute_default_service_accountgoogle_compute_default_service_account
google_kms_secretgoog_kms_secretgoogle_kms_secret
google_folder_datagoog_folder_datagoogle_folder_data
google_project_services_datagoog_project_services_datagoogle_project_services_data
google_service_account_key_datagoog_service_account_key_datagoogle_service_account_key_data
google_compute_forwarding_rule_datagoog_compute_forwarding_rule_datagoogle_compute_forwarding_rule_data
google_compute_regionsgoog_compute_regionsgoogle_compute_regions
google_organizationgoog_organizationgoogle_organization
google_storage_project_service_accountgoog_storage_project_service_accountgoogle_storage_project_service_account
google_cloudfunctions_function_datagoog_cloudfunctions_function_datagoogle_cloudfunctions_function_data
google_container_registry_repositorygoog_container_registry_repositorygoogle_container_registry_repository
google_compute_zonesgoog_compute_zonesgoogle_compute_zones
google_billing_accountgoog_billing_accountgoogle_billing_account
google_compute_instance_datagoog_compute_instance_datagoogle_compute_instance_data
google_container_cluster_datagoog_container_cluster_datagoogle_container_cluster_data
google_compute_lb_ip_rangesgoog_compute_lb_ip_rangesgoogle_compute_lb_ip_ranges
google_container_registry_imagegoog_container_registry_imagegoogle_container_registry_image
google_netblock_ip_rangesgoog_netblock_ip_rangesgoogle_netblock_ip_ranges
google_compute_address_datagoog_compute_address_datagoogle_compute_address_data
google_iam_policygoog_iam_policygoogle_iam_policy
google_compute_global_address_datagoog_compute_global_address_datagoogle_compute_global_address_data
google_dns_managed_zone_datagoog_dns_managed_zone_datagoogle_dns_managed_zone_data
google_compute_backend_service_datagoog_compute_backend_service_datagoogle_compute_backend_service_data
google_compute_instance_group_datagoog_compute_instance_group_datagoogle_compute_instance_group_data
google_active_foldergoog_active_foldergoogle_active_folder
google_binary_authorization_policygoog_binary_authorization_policygoogle_binary_authorization_policy
google_binary_authorization_attestorgoog_binary_authorization_attestorgoogle_binary_authorization_attestor
google_pubsub_subscriptiongoog_pubsub_subscriptiongoogle_pubsub_subscription
google_pubsub_subscription_iam_membergoog_pubsub_subscription_iam_membergoogle_pubsub_subscription_iam_member
google_pubsub_topic_iam_policygoog_pubsub_topic_iam_policygoogle_pubsub_topic_iam_policy
google_pubsub_subscription_iam_bindinggoog_pubsub_subscription_iam_bindinggoogle_pubsub_subscription_iam_binding
google_pubsub_topicgoog_pubsub_topicgoogle_pubsub_topic
google_pubsub_subscription_iam_policygoog_pubsub_subscription_iam_policygoogle_pubsub_subscription_iam_policy
google_pubsub_topic_iam_bindinggoog_pubsub_topic_iam_bindinggoogle_pubsub_topic_iam_binding
google_pubsub_topic_iam_membergoog_pubsub_topic_iam_membergoogle_pubsub_topic_iam_member
google_filestore_instancegoog_filestore_instancegoogle_filestore_instance
google_app_engine_applicationgoog_app_engine_applicationgoogle_app_engine_application
google_container_analysis_notegoog_container_analysis_notegoogle_container_analysis_note
google_runtimeconfig_variablegoog_runtimeconfig_variablegoogle_runtimeconfig_variable
google_runtimeconfig_configgoog_runtimeconfig_configgoogle_runtimeconfig_config
google_cloudiot_registrygoog_cloudiot_registrygoogle_cloudiot_registry
google_kms_crypto_key_iam_membergoog_kms_crypto_key_iam_membergoogle_kms_crypto_key_iam_member
google_kms_key_ring_iam_bindinggoog_kms_key_ring_iam_bindinggoogle_kms_key_ring_iam_binding
google_kms_key_ringgoog_kms_key_ringgoogle_kms_key_ring
google_kms_key_ring_iam_policygoog_kms_key_ring_iam_policygoogle_kms_key_ring_iam_policy
google_kms_crypto_key_iam_bindinggoog_kms_crypto_key_iam_bindinggoogle_kms_crypto_key_iam_binding
google_kms_key_ring_iam_membergoog_kms_key_ring_iam_membergoogle_kms_key_ring_iam_member
google_kms_crypto_keygoog_kms_crypto_keygoogle_kms_crypto_key
google_redis_instancegoog_redis_instancegoogle_redis_instance
google_logging_organization_exclusiongoog_logging_organization_exclusiongoogle_logging_organization_exclusion
google_logging_billing_account_exclusiongoog_logging_billing_account_exclusiongoogle_logging_billing_account_exclusion
google_logging_folder_exclusiongoog_logging_folder_exclusiongoogle_logging_folder_exclusion
google_logging_billing_account_sinkgoog_logging_billing_account_sinkgoogle_logging_billing_account_sink
google_logging_folder_sinkgoog_logging_folder_sinkgoogle_logging_folder_sink
google_logging_project_sinkgoog_logging_project_sinkgoogle_logging_project_sink
google_logging_organization_sinkgoog_logging_organization_sinkgoogle_logging_organization_sink
google_logging_project_exclusiongoog_logging_project_exclusiongoogle_logging_project_exclusion
google_organization_iam_membergoog_organization_iam_membergoogle_organization_iam_member
google_project_usage_export_bucketgoog_project_usage_export_bucketgoogle_project_usage_export_bucket
google_service_account_iam_policygoog_service_account_iam_policygoogle_service_account_iam_policy
google_projectgoog_projectgoogle_project
google_billing_account_iam_policygoog_billing_account_iam_policygoogle_billing_account_iam_policy
google_service_account_iam_bindinggoog_service_account_iam_bindinggoogle_service_account_iam_binding
google_folder_iam_policygoog_folder_iam_policygoogle_folder_iam_policy
google_service_accountgoog_service_accountgoogle_service_account
google_project_servicegoog_project_servicegoogle_project_service
google_service_account_keygoog_service_account_keygoogle_service_account_key
google_project_organization_policygoog_project_organization_policygoogle_project_organization_policy
google_organization_iam_bindinggoog_organization_iam_bindinggoogle_organization_iam_binding
google_project_iam_bindinggoog_project_iam_bindinggoogle_project_iam_binding
google_folder_iam_membergoog_folder_iam_membergoogle_folder_iam_member
google_project_iam_policygoog_project_iam_policygoogle_project_iam_policy
google_project_iam_custom_rolegoog_project_iam_custom_rolegoogle_project_iam_custom_role
google_service_account_iam_membergoog_service_account_iam_membergoogle_service_account_iam_member
google_billing_account_iam_bindinggoog_billing_account_iam_bindinggoogle_billing_account_iam_binding
google_organization_policygoog_organization_policygoogle_organization_policy
google_organization_iam_policygoog_organization_iam_policygoogle_organization_iam_policy
google_project_iam_membergoog_project_iam_membergoogle_project_iam_member
google_folder_organization_policygoog_folder_organization_policygoogle_folder_organization_policy
google_organization_iam_custom_rolegoog_organization_iam_custom_rolegoogle_organization_iam_custom_role
google_resource_manager_liengoog_resource_manager_liengoogle_resource_manager_lien
google_project_servicesgoog_project_servicesgoogle_project_services
google_foldergoog_foldergoogle_folder
google_folder_iam_bindinggoog_folder_iam_bindinggoogle_folder_iam_binding
google_billing_account_iam_membergoog_billing_account_iam_membergoogle_billing_account_iam_member
google_dns_managed_zonegoog_dns_managed_zonegoogle_dns_managed_zone
google_dns_record_setgoog_dns_record_setgoogle_dns_record_set
google_container_clustergoog_container_clustergoogle_container_cluster
google_container_node_poolgoog_container_node_poolgoogle_container_node_pool
google_bigtable_tablegoog_bigtable_tablegoogle_bigtable_table
google_bigtable_instancegoog_bigtable_instancegoogle_bigtable_instance
google_endpoints_servicegoog_endpoints_servicegoogle_endpoints_service
google_dataproc_clustergoog_dataproc_clustergoogle_dataproc_cluster
google_dataproc_jobgoog_dataproc_jobgoogle_dataproc_job
google_spanner_database_iam_policygoog_spanner_database_iam_policygoogle_spanner_database_iam_policy
google_spanner_database_iam_bindinggoog_spanner_database_iam_bindinggoogle_spanner_database_iam_binding
google_spanner_instance_iam_bindinggoog_spanner_instance_iam_bindinggoogle_spanner_instance_iam_binding
google_spanner_instance_iam_policygoog_spanner_instance_iam_policygoogle_spanner_instance_iam_policy
google_spanner_database_iam_membergoog_spanner_database_iam_membergoogle_spanner_database_iam_member
google_spanner_instancegoog_spanner_instancegoogle_spanner_instance
google_spanner_instance_iam_membergoog_spanner_instance_iam_membergoogle_spanner_instance_iam_member
google_spanner_databasegoog_spanner_databasegoogle_spanner_database
google_bigquery_tablegoog_bigquery_tablegoogle_bigquery_table
google_bigquery_datasetgoog_bigquery_datasetgoogle_bigquery_dataset
google_cloudfunctions_functiongoog_cloudfunctions_functiongoogle_cloudfunctions_function
google_sourcerepo_repositorygoog_sourcerepo_repositorygoogle_sourcerepo_repository
terraformtfterraform

text-mode

namekeyfilenamegroupdesc

tuareg-mode

namekeyfilenamegroupdesc
type_typetypetype_type
printfprprintf
openopopen
matchmatchmatch
whilewhwhile
modulemodmodule
ifthenelseififthenelse
type_recordtypetype
forforfor
list_comprehensionllist_comprehension
valvalval
ifthenififthen
recrecrec
guard|guard
letletlet
funfunfun
assertasassert
trytrytry
docstringddocstring
mainmmain

typerex-mode

namekeyfilenamegroupdesc

typescript-mode

namekeyfilenamegroupdesc

udev-mode

namekeyfilenamegroupdesc
GOTOgotoGOTO
KERNELkerKERNEL
env$$env$
addaddadd
ENVenvENV
runrunrun

vhdl-mode

namekeyfilenamegroupdesc
entityententity
typetypetype
assignationasgassignation
downtodtodownto
ififif
constantconstconstant
architecturearcharchitecture
libraryliblib
signalsignalsignal
portportport
componentcompcomponent
ifelseifelifelse
processprocessprocess
whenwhenwhen
casecasecase
ifelififelififelif
tototo

web-mode

namekeyfilenamegroupdesc

yaml-mode

namekeyfilenamegroupdesc
entryentryentry
section--section
listlistlist
From 39e640c037f51602f821721c200ab43b71febc90 Mon Sep 17 00:00:00 2001 From: Andrea Crotti Date: Wed, 8 Sep 2021 11:44:18 +0100 Subject: [PATCH 19/86] bump version --- yasnippet-snippets.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yasnippet-snippets.el b/yasnippet-snippets.el index 83ebd4b90..d268df362 100644 --- a/yasnippet-snippets.el +++ b/yasnippet-snippets.el @@ -4,7 +4,7 @@ ;; Author: Andrea Crotti ;; Keywords: snippets -;; Version: 0.2 +;; Version: 1.0 ;; Package-Requires: ((yasnippet "0.8.0")) ;; Keywords: convenience, snippets ;; Homepage: https://github.com/AndreaCrotti/yasnippet-snippets From 0d6c0f17e693248fb3e876fa8c81af3deba5347b Mon Sep 17 00:00:00 2001 From: takeokunn Date: Mon, 4 Oct 2021 15:01:40 +0900 Subject: [PATCH 20/86] php-mode: add enum keyword --- snippets/php-mode/enum | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 snippets/php-mode/enum diff --git a/snippets/php-mode/enum b/snippets/php-mode/enum new file mode 100644 index 000000000..e94b592cb --- /dev/null +++ b/snippets/php-mode/enum @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# contributor: takeo obara +# name: enum +# key: enum +# group : definitions +# -- +enum ${1:Name}${2:: type} { + case: ${3:One}; + case: ${4:Two}; +$0 +} From 1265599551a4b434f734e674614dedd4c585be76 Mon Sep 17 00:00:00 2001 From: takeokunn Date: Mon, 4 Oct 2021 15:24:38 +0900 Subject: [PATCH 21/86] php-mode: add match keyword --- snippets/php-mode/match | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 snippets/php-mode/match diff --git a/snippets/php-mode/match b/snippets/php-mode/match new file mode 100644 index 000000000..d4681118b --- /dev/null +++ b/snippets/php-mode/match @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# contributor: takeo obara +# name: match +# key: match +# group : control structure +# -- +match (${1:$var}) { + ${2:$cond} => ${3:$return}, +$0 +}; From 59d714eebe79d088d309fcae2f6d7e440cef8335 Mon Sep 17 00:00:00 2001 From: Ivan Yonchovski Date: Sat, 12 Feb 2022 16:07:40 +0200 Subject: [PATCH 22/86] Snippets for nim-mode --- snippets/nim-mode/array | 5 +++++ snippets/nim-mode/block | 6 ++++++ snippets/nim-mode/case | 6 ++++++ snippets/nim-mode/for | 6 ++++++ snippets/nim-mode/function | 6 ++++++ snippets/nim-mode/if | 6 ++++++ snippets/nim-mode/import | 5 +++++ snippets/nim-mode/import from | 5 +++++ snippets/nim-mode/iterator | 5 +++++ snippets/nim-mode/macro | 6 ++++++ snippets/nim-mode/method | 6 ++++++ snippets/nim-mode/of | 6 ++++++ snippets/nim-mode/pragma | 5 +++++ snippets/nim-mode/procedure | 6 ++++++ snippets/nim-mode/sequence | 5 +++++ snippets/nim-mode/template | 6 ++++++ snippets/nim-mode/try-except | 8 ++++++++ snippets/nim-mode/while | 6 ++++++ 18 files changed, 104 insertions(+) create mode 100644 snippets/nim-mode/array create mode 100644 snippets/nim-mode/block create mode 100644 snippets/nim-mode/case create mode 100644 snippets/nim-mode/for create mode 100644 snippets/nim-mode/function create mode 100644 snippets/nim-mode/if create mode 100644 snippets/nim-mode/import create mode 100644 snippets/nim-mode/import from create mode 100644 snippets/nim-mode/iterator create mode 100644 snippets/nim-mode/macro create mode 100644 snippets/nim-mode/method create mode 100644 snippets/nim-mode/of create mode 100644 snippets/nim-mode/pragma create mode 100644 snippets/nim-mode/procedure create mode 100644 snippets/nim-mode/sequence create mode 100644 snippets/nim-mode/template create mode 100644 snippets/nim-mode/try-except create mode 100644 snippets/nim-mode/while diff --git a/snippets/nim-mode/array b/snippets/nim-mode/array new file mode 100644 index 000000000..4ccba24aa --- /dev/null +++ b/snippets/nim-mode/array @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: array +# key: array +# -- +array[${1:length}, ${2:type}]$0 \ No newline at end of file diff --git a/snippets/nim-mode/block b/snippets/nim-mode/block new file mode 100644 index 000000000..d3e0321f7 --- /dev/null +++ b/snippets/nim-mode/block @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: block +# key: block +# -- +block ${1:name}: + $0 \ No newline at end of file diff --git a/snippets/nim-mode/case b/snippets/nim-mode/case new file mode 100644 index 000000000..9ba586de0 --- /dev/null +++ b/snippets/nim-mode/case @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: case +# key: case +# -- +case ${1:value} +$0 \ No newline at end of file diff --git a/snippets/nim-mode/for b/snippets/nim-mode/for new file mode 100644 index 000000000..2c7098050 --- /dev/null +++ b/snippets/nim-mode/for @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: for +# key: for +# -- +for ${1:index} in ${2:sequence}: + $0 \ No newline at end of file diff --git a/snippets/nim-mode/function b/snippets/nim-mode/function new file mode 100644 index 000000000..4e9d58fc0 --- /dev/null +++ b/snippets/nim-mode/function @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: func +# key: func +# -- +func ${1:name}(${2:arguments}): ${3:return type} = + $0 \ No newline at end of file diff --git a/snippets/nim-mode/if b/snippets/nim-mode/if new file mode 100644 index 000000000..ad5f155ab --- /dev/null +++ b/snippets/nim-mode/if @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: if +# key: if +# -- +if ${1:expression}: + $0 \ No newline at end of file diff --git a/snippets/nim-mode/import b/snippets/nim-mode/import new file mode 100644 index 000000000..b75ea9e42 --- /dev/null +++ b/snippets/nim-mode/import @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: import +# key: import +# -- +import ${1:module} \ No newline at end of file diff --git a/snippets/nim-mode/import from b/snippets/nim-mode/import from new file mode 100644 index 000000000..3565f8f48 --- /dev/null +++ b/snippets/nim-mode/import from @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: from +# key: from +# -- +from ${1:module} import ${2:field} \ No newline at end of file diff --git a/snippets/nim-mode/iterator b/snippets/nim-mode/iterator new file mode 100644 index 000000000..ffd1dfe55 --- /dev/null +++ b/snippets/nim-mode/iterator @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: iterator +# key: iterator +# -- +iterator ${1:name}(${2:arguments}): ${3:return type}$0 \ No newline at end of file diff --git a/snippets/nim-mode/macro b/snippets/nim-mode/macro new file mode 100644 index 000000000..0ef4705e5 --- /dev/null +++ b/snippets/nim-mode/macro @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: macro +# key: macro +# -- +macro ${1:name}(${2:arguments}): ${3:return type} = + $0 \ No newline at end of file diff --git a/snippets/nim-mode/method b/snippets/nim-mode/method new file mode 100644 index 000000000..38d05684c --- /dev/null +++ b/snippets/nim-mode/method @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: method +# key: method +# -- +method ${1:name}(${2:arguments}): ${3:return type} = + $0 \ No newline at end of file diff --git a/snippets/nim-mode/of b/snippets/nim-mode/of new file mode 100644 index 000000000..fbd6d9480 --- /dev/null +++ b/snippets/nim-mode/of @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: of +# key: of +# -- +of ${1:value}: + $0 \ No newline at end of file diff --git a/snippets/nim-mode/pragma b/snippets/nim-mode/pragma new file mode 100644 index 000000000..6a047c3aa --- /dev/null +++ b/snippets/nim-mode/pragma @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: pr +# key: pr +# -- +{.${1:name}.} \ No newline at end of file diff --git a/snippets/nim-mode/procedure b/snippets/nim-mode/procedure new file mode 100644 index 000000000..9595fc7e9 --- /dev/null +++ b/snippets/nim-mode/procedure @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: proc +# key: proc +# -- +proc ${1:name}(${2:arguments}): ${3:return type} = + $0 \ No newline at end of file diff --git a/snippets/nim-mode/sequence b/snippets/nim-mode/sequence new file mode 100644 index 000000000..17ee6b9a7 --- /dev/null +++ b/snippets/nim-mode/sequence @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: seq +# key: seq +# -- +seq[${1:type}]$0 \ No newline at end of file diff --git a/snippets/nim-mode/template b/snippets/nim-mode/template new file mode 100644 index 000000000..f1009533a --- /dev/null +++ b/snippets/nim-mode/template @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: template +# key: template +# -- +template ${1:name}(${2:arguments}): ${3:return type} = + $0 \ No newline at end of file diff --git a/snippets/nim-mode/try-except b/snippets/nim-mode/try-except new file mode 100644 index 000000000..9dc82b013 --- /dev/null +++ b/snippets/nim-mode/try-except @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: try +# key: try +# -- +try: + $0 +except ${1:exception}: + \ No newline at end of file diff --git a/snippets/nim-mode/while b/snippets/nim-mode/while new file mode 100644 index 000000000..0350331c3 --- /dev/null +++ b/snippets/nim-mode/while @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: while +# key: while +# -- +while ${1:expression}: + $0 \ No newline at end of file From 506be0ea4d948e2328813bb85092036d72bb4f55 Mon Sep 17 00:00:00 2001 From: Jen-Chieh Shen Date: Fri, 25 Mar 2022 13:56:19 +0800 Subject: [PATCH 23/86] Update snippet dir after modifying it --- yasnippet-snippets.el | 1 + 1 file changed, 1 insertion(+) diff --git a/yasnippet-snippets.el b/yasnippet-snippets.el index d268df362..078ac0487 100644 --- a/yasnippet-snippets.el +++ b/yasnippet-snippets.el @@ -50,6 +50,7 @@ ;; value, so that yasnippet will automatically find the directory ;; after this package is updated (i.e., moves directory). (add-to-list 'yas-snippet-dirs 'yasnippet-snippets-dir t) + (yas--load-snippet-dirs) (yas-load-directory yasnippet-snippets-dir t)) (defgroup yasnippet-snippets nil From 31d8558f87223fb033ad74626462e2b25ddfb20d Mon Sep 17 00:00:00 2001 From: Laam Pui Date: Sun, 19 Jun 2022 09:53:41 +0800 Subject: [PATCH 24/86] add cta => console.table() --- snippets/js-mode/console/cta | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 snippets/js-mode/console/cta diff --git a/snippets/js-mode/console/cta b/snippets/js-mode/console/cta new file mode 100644 index 000000000..ab6b88e22 --- /dev/null +++ b/snippets/js-mode/console/cta @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# uuid: 9c2aa6ee-9729-46d9-afdb-b6dc21f9f2e7 +# contributor: Laam Pui +# name: console.table +# key: cta +# group: console +# -- + +console.table(${1:object}) \ No newline at end of file From 3ba80dd191b4e907892f6d63566f161743c1310f Mon Sep 17 00:00:00 2001 From: Juan Palacios Date: Sun, 19 Jun 2022 20:32:04 +0200 Subject: [PATCH 25/86] Use the standard indentation on rust-mode snippets The standard indentation is 4 spaces: https://github.com/rust-dev-tools/fmt-rfcs/blob/master/guide/guide.md#indentation-and-line-width --- snippets/rust-mode/closure | 4 ++-- snippets/rust-mode/drop | 8 ++++---- snippets/rust-mode/enum | 4 ++-- snippets/rust-mode/fnr | 4 ++-- snippets/rust-mode/fnw | 4 ++-- snippets/rust-mode/from | 4 ++-- snippets/rust-mode/ife | 6 +++--- snippets/rust-mode/impl | 4 ++-- snippets/rust-mode/implt | 4 ++-- snippets/rust-mode/loop | 4 ++-- snippets/rust-mode/macro | 4 ++-- snippets/rust-mode/main | 4 ++-- snippets/rust-mode/match | 4 ++-- snippets/rust-mode/new | 4 ++-- snippets/rust-mode/pfnr | 4 ++-- snippets/rust-mode/pfnw | 4 ++-- snippets/rust-mode/spawn | 4 ++-- snippets/rust-mode/struct | 4 ++-- snippets/rust-mode/test | 4 ++-- snippets/rust-mode/testmod | 4 ++-- snippets/rust-mode/trait | 4 ++-- snippets/rust-mode/union | 4 ++-- snippets/rust-mode/while | 4 ++-- snippets/rust-mode/whilel | 4 ++-- 24 files changed, 51 insertions(+), 51 deletions(-) diff --git a/snippets/rust-mode/closure b/snippets/rust-mode/closure index 82579836b..1624d5700 100644 --- a/snippets/rust-mode/closure +++ b/snippets/rust-mode/closure @@ -3,5 +3,5 @@ # key: || # -- |${1:arguments}| { - $0 -} \ No newline at end of file + $0 +} diff --git a/snippets/rust-mode/drop b/snippets/rust-mode/drop index 310d0ad04..ba23a5b0f 100644 --- a/snippets/rust-mode/drop +++ b/snippets/rust-mode/drop @@ -3,7 +3,7 @@ # key: drop # -- impl Drop for ${1:Type} { - fn drop(&mut self) { - $0 - } -} \ No newline at end of file + fn drop(&mut self) { + $0 + } +} diff --git a/snippets/rust-mode/enum b/snippets/rust-mode/enum index 058aadc18..acf919b87 100644 --- a/snippets/rust-mode/enum +++ b/snippets/rust-mode/enum @@ -3,5 +3,5 @@ # key: enum # -- enum ${1:Type} { - $0 -} \ No newline at end of file + $0 +} diff --git a/snippets/rust-mode/fnr b/snippets/rust-mode/fnr index 4a4db71aa..fa98eb201 100644 --- a/snippets/rust-mode/fnr +++ b/snippets/rust-mode/fnr @@ -3,5 +3,5 @@ # key: fnr # -- fn ${1:name}($2) -> ${3:Type} { - $0 -} \ No newline at end of file + $0 +} diff --git a/snippets/rust-mode/fnw b/snippets/rust-mode/fnw index 77bee6e36..321c29217 100644 --- a/snippets/rust-mode/fnw +++ b/snippets/rust-mode/fnw @@ -3,5 +3,5 @@ # key: fnw # -- fn ${1:name}<${2:T}>(${3:x: T}) where ${4:T: Clone} { - $0 -} \ No newline at end of file + $0 +} diff --git a/snippets/rust-mode/from b/snippets/rust-mode/from index e04e7f029..9e86209e3 100644 --- a/snippets/rust-mode/from +++ b/snippets/rust-mode/from @@ -4,7 +4,7 @@ # -- impl From<${1:From}> for ${2:Type} { fn from(source: $1) -> Self { - $0 - Self { } + $0 + Self { } } } diff --git a/snippets/rust-mode/ife b/snippets/rust-mode/ife index c738d4be6..12f2b56e8 100644 --- a/snippets/rust-mode/ife +++ b/snippets/rust-mode/ife @@ -3,7 +3,7 @@ # key: ife # -- if ${1:expression} { - $0 + $0 } else { - -} \ No newline at end of file + +} diff --git a/snippets/rust-mode/impl b/snippets/rust-mode/impl index 2d90db91f..14bb06f7c 100644 --- a/snippets/rust-mode/impl +++ b/snippets/rust-mode/impl @@ -3,5 +3,5 @@ # key: impl # -- impl ${1:Type} { - $0 -} \ No newline at end of file + $0 +} diff --git a/snippets/rust-mode/implt b/snippets/rust-mode/implt index 54269dfd3..0ed9b7dd5 100644 --- a/snippets/rust-mode/implt +++ b/snippets/rust-mode/implt @@ -3,5 +3,5 @@ # key: implt # -- impl ${1:Trait} for ${2:Type} { - $0 -} \ No newline at end of file + $0 +} diff --git a/snippets/rust-mode/loop b/snippets/rust-mode/loop index 2285b7526..e24ae616a 100644 --- a/snippets/rust-mode/loop +++ b/snippets/rust-mode/loop @@ -3,5 +3,5 @@ # key: loop # -- loop { - $0 -} \ No newline at end of file + $0 +} diff --git a/snippets/rust-mode/macro b/snippets/rust-mode/macro index b07f74896..410c1329b 100644 --- a/snippets/rust-mode/macro +++ b/snippets/rust-mode/macro @@ -3,5 +3,5 @@ # key: macro # -- macro_rules! ${1:name} { - ($2) => ($3); -} \ No newline at end of file + ($2) => ($3); +} diff --git a/snippets/rust-mode/main b/snippets/rust-mode/main index 75ae143c4..3f9fe318a 100644 --- a/snippets/rust-mode/main +++ b/snippets/rust-mode/main @@ -3,5 +3,5 @@ # key: main # -- fn main() { - $0 -} \ No newline at end of file + $0 +} diff --git a/snippets/rust-mode/match b/snippets/rust-mode/match index 54b7c806c..9dc802f11 100644 --- a/snippets/rust-mode/match +++ b/snippets/rust-mode/match @@ -3,5 +3,5 @@ # key: match # -- match ${1:expression} { - $0 -} \ No newline at end of file + $0 +} diff --git a/snippets/rust-mode/new b/snippets/rust-mode/new index 86d20e6c9..c5f21c13a 100644 --- a/snippets/rust-mode/new +++ b/snippets/rust-mode/new @@ -3,5 +3,5 @@ # key: new # -- pub fn new($1) -> ${2:Name} { - $2 { ${3} } -} \ No newline at end of file + $2 { ${3} } +} diff --git a/snippets/rust-mode/pfnr b/snippets/rust-mode/pfnr index e3490e2cd..4fdd2610c 100644 --- a/snippets/rust-mode/pfnr +++ b/snippets/rust-mode/pfnr @@ -3,5 +3,5 @@ # key: pfnr # -- pub fn ${1:name}($2) -> ${3:Type} { - $0 -} \ No newline at end of file + $0 +} diff --git a/snippets/rust-mode/pfnw b/snippets/rust-mode/pfnw index 4ad59a0c1..c26440060 100644 --- a/snippets/rust-mode/pfnw +++ b/snippets/rust-mode/pfnw @@ -3,5 +3,5 @@ # key: pfnw # -- pub fn ${1:name}<${2:T}>(${3:x: T}) where ${4:T: Clone} { - $0 -} \ No newline at end of file + $0 +} diff --git a/snippets/rust-mode/spawn b/snippets/rust-mode/spawn index 4b44cccf9..c5b74456a 100644 --- a/snippets/rust-mode/spawn +++ b/snippets/rust-mode/spawn @@ -3,5 +3,5 @@ # key: spawn # -- spawn(proc() { - $0 -}); \ No newline at end of file + $0 +}); diff --git a/snippets/rust-mode/struct b/snippets/rust-mode/struct index 1c2e4c8cb..7de2ffa77 100644 --- a/snippets/rust-mode/struct +++ b/snippets/rust-mode/struct @@ -3,5 +3,5 @@ # key: struct # -- struct ${1:TypeName} { - $0 -} \ No newline at end of file + $0 +} diff --git a/snippets/rust-mode/test b/snippets/rust-mode/test index c83d83d6d..26efca13e 100644 --- a/snippets/rust-mode/test +++ b/snippets/rust-mode/test @@ -4,5 +4,5 @@ # -- #[test] fn ${1:test_name}() { - $0 -} \ No newline at end of file + $0 +} diff --git a/snippets/rust-mode/testmod b/snippets/rust-mode/testmod index f0be987df..d3494b702 100644 --- a/snippets/rust-mode/testmod +++ b/snippets/rust-mode/testmod @@ -8,6 +8,6 @@ mod ${1:tests} { #[test] fn ${2:test_name}() { - $0 + $0 } -} \ No newline at end of file +} diff --git a/snippets/rust-mode/trait b/snippets/rust-mode/trait index 15ab20126..724df7f5f 100644 --- a/snippets/rust-mode/trait +++ b/snippets/rust-mode/trait @@ -3,5 +3,5 @@ # key: trait # -- trait ${1:Type} { - $0 -} \ No newline at end of file + $0 +} diff --git a/snippets/rust-mode/union b/snippets/rust-mode/union index bfd93aaaa..92585a265 100644 --- a/snippets/rust-mode/union +++ b/snippets/rust-mode/union @@ -3,5 +3,5 @@ # key: union # -- union ${1:Type} { - $0 -} \ No newline at end of file + $0 +} diff --git a/snippets/rust-mode/while b/snippets/rust-mode/while index 2fa221a95..dbb366391 100644 --- a/snippets/rust-mode/while +++ b/snippets/rust-mode/while @@ -3,5 +3,5 @@ # key: while # -- while ${1:expression} { - $0 -} \ No newline at end of file + $0 +} diff --git a/snippets/rust-mode/whilel b/snippets/rust-mode/whilel index 7f807e19c..91370147d 100644 --- a/snippets/rust-mode/whilel +++ b/snippets/rust-mode/whilel @@ -3,5 +3,5 @@ # key: whilel # -- while let ${1:pattern} = ${2:expression} { - $0 -} \ No newline at end of file + $0 +} From fb782284de6242036f0b4fcf089f9cc9e0b8d299 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Bar=C4=87?= Date: Sun, 3 Jul 2022 19:06:22 +0200 Subject: [PATCH 26/86] racket-mode: add module, module+ and module* snippets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maciej Barć --- snippets/racket-mode/module | 6 ++++++ snippets/racket-mode/module-plus | 6 ++++++ snippets/racket-mode/module-star | 6 ++++++ 3 files changed, 18 insertions(+) create mode 100644 snippets/racket-mode/module create mode 100644 snippets/racket-mode/module-plus create mode 100644 snippets/racket-mode/module-star diff --git a/snippets/racket-mode/module b/snippets/racket-mode/module new file mode 100644 index 000000000..720351816 --- /dev/null +++ b/snippets/racket-mode/module @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: (module ... ... ...) +# key: module +# -- +(module ${1:id} ${2:module-path} + $0) \ No newline at end of file diff --git a/snippets/racket-mode/module-plus b/snippets/racket-mode/module-plus new file mode 100644 index 000000000..7093474ee --- /dev/null +++ b/snippets/racket-mode/module-plus @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: (module+ ... ...) +# key: module+ +# -- +(module+ ${1:id} + $0) \ No newline at end of file diff --git a/snippets/racket-mode/module-star b/snippets/racket-mode/module-star new file mode 100644 index 000000000..e99c9d13e --- /dev/null +++ b/snippets/racket-mode/module-star @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: (module* ... ... ...) +# key: module* +# -- +(module* ${1:id} ${2:module-path} + $0) \ No newline at end of file From 22c2bc004314aa6dc0fc6776dc3312f869a3e073 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Bar=C4=87?= Date: Sun, 3 Jul 2022 19:19:26 +0200 Subject: [PATCH 27/86] racket-mode: add define-syntax-rule snippet MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maciej Barć --- snippets/racket-mode/define-syntax-rule | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 snippets/racket-mode/define-syntax-rule diff --git a/snippets/racket-mode/define-syntax-rule b/snippets/racket-mode/define-syntax-rule new file mode 100644 index 000000000..2ee92e2f3 --- /dev/null +++ b/snippets/racket-mode/define-syntax-rule @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: (define-syntax-rule (... ...) ...) +# key: define-syntax-rule +# -- +(define-syntax-rule (${1:id} ${2:pattern}) $0) \ No newline at end of file From bd83517452a97e3d2cc7c6cd6d1e91ced3ab27bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Bar=C4=87?= Date: Sun, 3 Jul 2022 19:25:11 +0200 Subject: [PATCH 28/86] racket-mode: add syntax-rules snippet MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maciej Barć --- snippets/racket-mode/syntax-rules | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 snippets/racket-mode/syntax-rules diff --git a/snippets/racket-mode/syntax-rules b/snippets/racket-mode/syntax-rules new file mode 100644 index 000000000..8e2a98417 --- /dev/null +++ b/snippets/racket-mode/syntax-rules @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: (syntax-rules (...) [(... ...) ...]...) +# key: syntax-rules +# -- +(syntax-rules (${1:literal-id}$2) + [(${3:id} ${4:pattern}) ${5:template}]$6) \ No newline at end of file From b5a76f164129025ea2741063612317ee75b9ca58 Mon Sep 17 00:00:00 2001 From: Alberto Luaces Date: Tue, 5 Jul 2022 14:01:53 +0200 Subject: [PATCH 29/86] Ending parentheses of v.end() --- snippets/c++-mode/beginend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/c++-mode/beginend b/snippets/c++-mode/beginend index e69a18f65..9b4c5ab18 100644 --- a/snippets/c++-mode/beginend +++ b/snippets/c++-mode/beginend @@ -2,4 +2,4 @@ # name: v.begin(), v.end() # key: beginend # -- -${1:v}.begin(), $1.end \ No newline at end of file +${1:v}.begin(), $1.end() From 99b0be85e48d19b7142e5ac16f3aeb8a286eda50 Mon Sep 17 00:00:00 2001 From: snowman Date: Fri, 8 Jul 2022 08:26:00 +0800 Subject: [PATCH 30/86] Fix: do NOT overwrite user snippets When have the same snippet name with same mode, prefer user snippet. "yas--load-snippet-dirs" loads "(yas-snippet-dirs)" with reverse order, which loads "yasnippet-snippets-dir" first with JIT --- yasnippet-snippets.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/yasnippet-snippets.el b/yasnippet-snippets.el index 078ac0487..fbb474c4d 100644 --- a/yasnippet-snippets.el +++ b/yasnippet-snippets.el @@ -50,8 +50,7 @@ ;; value, so that yasnippet will automatically find the directory ;; after this package is updated (i.e., moves directory). (add-to-list 'yas-snippet-dirs 'yasnippet-snippets-dir t) - (yas--load-snippet-dirs) - (yas-load-directory yasnippet-snippets-dir t)) + (yas--load-snippet-dirs)) (defgroup yasnippet-snippets nil "Options for yasnippet setups. From 44f4fb4d3508cba7433add562a3d447408cda697 Mon Sep 17 00:00:00 2001 From: Wilhelm Hugo Kirschbaum Date: Sat, 31 Dec 2022 11:56:55 +0200 Subject: [PATCH 31/86] Add elixir-ts-mode elixir-ts-mode is a new elixir-mode with tree-sitter support. --- snippets/elixir-ts-mode/.yas-parents | 1 + 1 file changed, 1 insertion(+) create mode 100644 snippets/elixir-ts-mode/.yas-parents diff --git a/snippets/elixir-ts-mode/.yas-parents b/snippets/elixir-ts-mode/.yas-parents new file mode 100644 index 000000000..a7790749c --- /dev/null +++ b/snippets/elixir-ts-mode/.yas-parents @@ -0,0 +1 @@ +elixir-mode \ No newline at end of file From d35beac9d2cdc4a1a231f106c0e47ff6afeef096 Mon Sep 17 00:00:00 2001 From: Jay Barra Date: Sun, 15 Jan 2023 11:05:43 -0500 Subject: [PATCH 32/86] Fixes try-src-prefix definition is void --- snippets/clojure-mode/ns | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/snippets/clojure-mode/ns b/snippets/clojure-mode/ns index c1ef7ede1..b87dd7445 100644 --- a/snippets/clojure-mode/ns +++ b/snippets/clojure-mode/ns @@ -11,13 +11,13 @@ nil)))) (let* ((p (buffer-file-name)) (p2 (cl-first - (cl-remove-if-not '(lambda (x) x) + (cl-remove-if-not #'(lambda (x) x) (mapcar - '(lambda (pfx) + #'(lambda (pfx) (try-src-prefix p pfx)) '("/src/cljs/" "/src/clj/" "/src/" "/test/"))))) (p3 (file-name-sans-extension p2)) - (p4 (mapconcat '(lambda (x) x) + (p4 (mapconcat #'(lambda (x) x) (split-string p3 "/") "."))) (replace-regexp-in-string "_" "-" p4)))`) \ No newline at end of file From 316821bd01dcf2af9e19b9f12e26407bbdf495a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20Gardfj=C3=A4ll?= Date: Mon, 6 Feb 2023 13:48:48 +0100 Subject: [PATCH 33/86] add support for go-ts-mode (treesitter-based go major mode) Emacs-29 introduces new major modes for most programming languages based on the tree-sitter library: -ts-mode. This commit adds go-ts-mode, which through the use of .yas-parent is a straight copy of the existing go-mode. --- snippets/go-ts-mode/.yas-parents | 1 + 1 file changed, 1 insertion(+) create mode 100644 snippets/go-ts-mode/.yas-parents diff --git a/snippets/go-ts-mode/.yas-parents b/snippets/go-ts-mode/.yas-parents new file mode 100644 index 000000000..554bdfc79 --- /dev/null +++ b/snippets/go-ts-mode/.yas-parents @@ -0,0 +1 @@ +go-mode From 46d01cfe48060ae3555b6e46a2dbeb8c6e8fd1f6 Mon Sep 17 00:00:00 2001 From: mohammedzeglam-pg Date: Mon, 20 Feb 2023 17:27:12 +0200 Subject: [PATCH 34/86] Add csharp-ts-mode --- snippets/csharp-ts-mode/.yas-parents | 1 + 1 file changed, 1 insertion(+) create mode 100644 snippets/csharp-ts-mode/.yas-parents diff --git a/snippets/csharp-ts-mode/.yas-parents b/snippets/csharp-ts-mode/.yas-parents new file mode 100644 index 000000000..08e7286d4 --- /dev/null +++ b/snippets/csharp-ts-mode/.yas-parents @@ -0,0 +1 @@ +csharp-mode \ No newline at end of file From 4de18a8792fff21c7a41f6702dc87676dba11805 Mon Sep 17 00:00:00 2001 From: Nathan Cox Date: Tue, 14 Mar 2023 13:54:05 -0700 Subject: [PATCH 35/86] Alias rust-ts-mode to rust-mode (#464) --- snippets/rust-ts-mode/.yas-parents | 1 + 1 file changed, 1 insertion(+) create mode 100644 snippets/rust-ts-mode/.yas-parents diff --git a/snippets/rust-ts-mode/.yas-parents b/snippets/rust-ts-mode/.yas-parents new file mode 100644 index 000000000..3c8cd6765 --- /dev/null +++ b/snippets/rust-ts-mode/.yas-parents @@ -0,0 +1 @@ +rust-mode From 8e4c521252501dd9ad71ea78fae14683ab7a14cb Mon Sep 17 00:00:00 2001 From: Laam Pui Date: Wed, 15 Mar 2023 04:56:03 +0800 Subject: [PATCH 36/86] Remove js-mode function newline (#451) --- snippets/js-mode/function | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/js-mode/function b/snippets/js-mode/function index 31ef37486..96621b66d 100644 --- a/snippets/js-mode/function +++ b/snippets/js-mode/function @@ -4,4 +4,4 @@ # -- function ${1:name}(${2:arg}) { $0 -} +} \ No newline at end of file From bec49fa129ae8c0104ba150f9b8352a39c54dbd6 Mon Sep 17 00:00:00 2001 From: mrhappy200 <74416511+mrhappy200@users.noreply.github.com> Date: Thu, 22 Jun 2023 15:23:33 +0200 Subject: [PATCH 37/86] very pedantic spelling correction (#473) I believe a more correct way of phrasing this is "link to the video/image" instead of "link of the video/image" --- snippets/org-mode/video | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/org-mode/video b/snippets/org-mode/video index 86ae95ee5..713511de1 100644 --- a/snippets/org-mode/video +++ b/snippets/org-mode/video @@ -3,4 +3,4 @@ # key: Date: Tue, 15 Aug 2023 09:20:04 +0100 Subject: [PATCH 38/86] Alias python-ts-mode to python-mode (#477) --- snippets/python-ts-mode/.yas-parents | 1 + 1 file changed, 1 insertion(+) create mode 100644 snippets/python-ts-mode/.yas-parents diff --git a/snippets/python-ts-mode/.yas-parents b/snippets/python-ts-mode/.yas-parents new file mode 100644 index 000000000..49fb9bbce --- /dev/null +++ b/snippets/python-ts-mode/.yas-parents @@ -0,0 +1 @@ +python-mode From e04a69d49789d3e9d4b050a7759e2ba4b34a515d Mon Sep 17 00:00:00 2001 From: jhoran1us <40143322+jhoran1us@users.noreply.github.com> Date: Tue, 19 Dec 2023 16:05:47 +0100 Subject: [PATCH 39/86] Adding snippets for the Odin language (#483) * Create case * Add files via upload --- snippets/odin-mode/case | 6 ++++++ snippets/odin-mode/dfri | 7 +++++++ snippets/odin-mode/distinct | 7 +++++++ snippets/odin-mode/enum | 7 +++++++ snippets/odin-mode/fd | 5 +++++ snippets/odin-mode/for | 7 +++++++ snippets/odin-mode/ford | 7 +++++++ snippets/odin-mode/fori | 7 +++++++ snippets/odin-mode/if | 7 +++++++ snippets/odin-mode/ife | 7 +++++++ snippets/odin-mode/ifz | 7 +++++++ snippets/odin-mode/proc | 7 +++++++ snippets/odin-mode/struct | 7 +++++++ snippets/odin-mode/sw | 7 +++++++ snippets/odin-mode/swp | 7 +++++++ snippets/odin-mode/union | 7 +++++++ snippets/odin-mode/when | 7 +++++++ snippets/odin-mode/whene | 9 +++++++++ 18 files changed, 125 insertions(+) create mode 100644 snippets/odin-mode/case create mode 100644 snippets/odin-mode/dfri create mode 100644 snippets/odin-mode/distinct create mode 100644 snippets/odin-mode/enum create mode 100644 snippets/odin-mode/fd create mode 100644 snippets/odin-mode/for create mode 100644 snippets/odin-mode/ford create mode 100644 snippets/odin-mode/fori create mode 100644 snippets/odin-mode/if create mode 100644 snippets/odin-mode/ife create mode 100644 snippets/odin-mode/ifz create mode 100644 snippets/odin-mode/proc create mode 100644 snippets/odin-mode/struct create mode 100644 snippets/odin-mode/sw create mode 100644 snippets/odin-mode/swp create mode 100644 snippets/odin-mode/union create mode 100644 snippets/odin-mode/when create mode 100644 snippets/odin-mode/whene diff --git a/snippets/odin-mode/case b/snippets/odin-mode/case new file mode 100644 index 000000000..143d2a8fa --- /dev/null +++ b/snippets/odin-mode/case @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: case +# key: case +# -- +case ${1: $(indent-according-to-mode)}: + $0 \ No newline at end of file diff --git a/snippets/odin-mode/dfri b/snippets/odin-mode/dfri new file mode 100644 index 000000000..f4f5ddb1e --- /dev/null +++ b/snippets/odin-mode/dfri @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: defer if +# key: dfri +# -- +defer if $1 { +${0: $(indent-according-to-mode)} +} \ No newline at end of file diff --git a/snippets/odin-mode/distinct b/snippets/odin-mode/distinct new file mode 100644 index 000000000..c57c1a051 --- /dev/null +++ b/snippets/odin-mode/distinct @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: distinct +# key: distinct +# -- +${1:name} :: distinct { +${0: $(indent-according-to-mode)} +} \ No newline at end of file diff --git a/snippets/odin-mode/enum b/snippets/odin-mode/enum new file mode 100644 index 000000000..58ce40c72 --- /dev/null +++ b/snippets/odin-mode/enum @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: enum +# key: enum +# -- +${1:name} :: enum { +${0: $(indent-according-to-mode)} +} \ No newline at end of file diff --git a/snippets/odin-mode/fd b/snippets/odin-mode/fd new file mode 100644 index 000000000..02f5dcedd --- /dev/null +++ b/snippets/odin-mode/fd @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: for do +# key: fd +# -- +for $1; $2; $3 do ${0: $(indent-according-to-mode)} \ No newline at end of file diff --git a/snippets/odin-mode/for b/snippets/odin-mode/for new file mode 100644 index 000000000..eeac9e23c --- /dev/null +++ b/snippets/odin-mode/for @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: for +# key: for +# -- +for $1; $2; $3 { +${0: $(indent-according-to-mode)} +} \ No newline at end of file diff --git a/snippets/odin-mode/ford b/snippets/odin-mode/ford new file mode 100644 index 000000000..1685ac713 --- /dev/null +++ b/snippets/odin-mode/ford @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: for (with directive) +# key: ford +# -- +${1:Directive(TAB to skip)$(if (and (not yas-modified-p) yas-moving-away-p) (yas-skip-and-clear-field) nil)} for ${2: } { +${0: $(indent-according-to-mode)} +} \ No newline at end of file diff --git a/snippets/odin-mode/fori b/snippets/odin-mode/fori new file mode 100644 index 000000000..5c3d10f68 --- /dev/null +++ b/snippets/odin-mode/fori @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: for in +# key: fori +# -- +for $1 in $2 { +${0: $(indent-according-to-mode)} +} \ No newline at end of file diff --git a/snippets/odin-mode/if b/snippets/odin-mode/if new file mode 100644 index 000000000..74358f175 --- /dev/null +++ b/snippets/odin-mode/if @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: if +# key: if +# -- +if $1 { +${0: $(indent-according-to-mode)} +} \ No newline at end of file diff --git a/snippets/odin-mode/ife b/snippets/odin-mode/ife new file mode 100644 index 000000000..098d83f28 --- /dev/null +++ b/snippets/odin-mode/ife @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: if else +# key: ife +# -- +if ${1: $(if (and (not yas-modified-p) yas-moving-away-p) (yas-skip-and-clear-field) nil)}; ${2: } { + $3 +} else $0 \ No newline at end of file diff --git a/snippets/odin-mode/ifz b/snippets/odin-mode/ifz new file mode 100644 index 000000000..bebbcbbef --- /dev/null +++ b/snippets/odin-mode/ifz @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: if (with initialization) +# key: ifz +# -- +if $1; $2 { +${0: $(indent-according-to-mode)} +} \ No newline at end of file diff --git a/snippets/odin-mode/proc b/snippets/odin-mode/proc new file mode 100644 index 000000000..c4fb95b06 --- /dev/null +++ b/snippets/odin-mode/proc @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: proc +# key: pr +# -- +${1:name} :: proc($2) -> $3 { +${0: $(indent-according-to-mode)} +} \ No newline at end of file diff --git a/snippets/odin-mode/struct b/snippets/odin-mode/struct new file mode 100644 index 000000000..40d18770e --- /dev/null +++ b/snippets/odin-mode/struct @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: struct +# key: struct +# -- +${1:name} :: struct { +${0: $(indent-according-to-mode)} +} \ No newline at end of file diff --git a/snippets/odin-mode/sw b/snippets/odin-mode/sw new file mode 100644 index 000000000..b136d688f --- /dev/null +++ b/snippets/odin-mode/sw @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: switch +# key: sw +# -- +switch $1;$2 { +${0: $(indent-according-to-mode)} +} diff --git a/snippets/odin-mode/swp b/snippets/odin-mode/swp new file mode 100644 index 000000000..202f8de92 --- /dev/null +++ b/snippets/odin-mode/swp @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: partial switch +# key: swp +# -- +#partial switch $1;$2 { +${0: $(indent-according-to-mode)} +} diff --git a/snippets/odin-mode/union b/snippets/odin-mode/union new file mode 100644 index 000000000..82dd19131 --- /dev/null +++ b/snippets/odin-mode/union @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: union +# key: union +# -- +${1:name} :: union { +${0: $(indent-according-to-mode)} +} \ No newline at end of file diff --git a/snippets/odin-mode/when b/snippets/odin-mode/when new file mode 100644 index 000000000..dc8c3b5b5 --- /dev/null +++ b/snippets/odin-mode/when @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: when +# key: when +# -- +when $1 { +${0: $(indent-according-to-mode)} +} \ No newline at end of file diff --git a/snippets/odin-mode/whene b/snippets/odin-mode/whene new file mode 100644 index 000000000..41df998d8 --- /dev/null +++ b/snippets/odin-mode/whene @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: when else +# key: whene +# -- +when $1 { +${2: $(indent-according-to-mode)} +} else { +${0: $(indent-according-to-mode)} +} \ No newline at end of file From 12103bb505c0e1ad3085c2f19e42fdf74761ab9a Mon Sep 17 00:00:00 2001 From: Andrea Crotti Date: Tue, 19 Dec 2023 15:06:42 +0000 Subject: [PATCH 40/86] ignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index da76e7c31..02ac900f2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ **/.yas-compiled-snippets.el /report/target/ /report/.nrepl-port +/.clj-kondo/ +/.lsp/ From 9f67370d9dbff73b0a4bf7c859455659b193f991 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Fri, 5 Jan 2024 12:35:46 +0100 Subject: [PATCH 41/86] Merge elpy snippets (again) (#465) * elpy-initialize-variables: Add the Elpy snippet directory. Elpy now ships with a few YASnippet snippets for Python. Fixes #43. * Small rework of the snippets. The enter and exit snippets now conform to the yasnippet-snippets repository (mostly), while super now makes use of the .yas-setup.el mechanism and is seriously improved. There's a new snippet for __init__ methods, too, which automatically assigns arguments to instance variables. * Rework and expand the snippet collection. * Add __bool__ snippet. * updated yasnippet variable 'text' to 'yas-text' * Return correct form of "super" depending on Python version Previously when using the yasnippet "super", it will always return "(class, arg).method" which was the Py2 way of doing it. In Py3, you could simply do "().method" and Python will understand. * Move yasnippet-snippets onto their own branch * PR #259 Change keys for __foo__ from "foo" to "_foo" Thanks to galaunay for the idea to use this to "avoid unnecessary keyspace pollution." * Fix bug due to passage from elpy to yasnippet * Use snippet expansion for foo -> __foo__ * Fix bug when specifying arguments on several lines * Allow detection of Python 3 on PEP 394-compliant systems. Please note that python-interpreter must be set to "python3" for this to function correctly. As a side-effect it also allows the use of Python 2 on systems that install version 3 to /usr/bin/python and version 2 to /usr/bin/python2. * Change elpy prefixes to yas-snips Thanks to Andrea Crotti for the review and suggestion. * Add newline at end of file for all files that were missing one. * Make python snippets able to handle arguments with type annotations. * Use start-point from yas--apply-transform in snippet-init-assignment yas-snips-snippet-init-assignments should use values provided by yas--apply-transform instead of grabbing them itself. Thanks to npostavs for finding this issue. See review discussion at PR #278 for more info (search for "yas--apply-transform"). * Removing Python 2 snippets, it's EOL since 2020-01-01. * Some consistenty in group names. * Removing a duplicate. * Owner is documented as optional. cf. https://docs.python.org/3/reference/datamodel.html#object.__get__ * Resolve a conflict between _getattr and _getattribute * Deduplicate: it already exists in master (named pdb). * Dedup: already exists as __repr__ * Dedup: already exists as __str__ * fix: try is already used by ./try * fix misleading key. * Consistency with other dunders. * Consistency with other naming. * Removing super, we don't have all needed elisp yet. * Deduplicate two keys. * s not needed. * The hook does not works for me. * Add few missing newlines at end of file. --------- Co-authored-by: Jorgen Schaefer Co-authored-by: Jorgen Schaefer Co-authored-by: Daniel Wu Co-authored-by: Daniel Gopar Co-authored-by: Nicholas D Steeves Co-authored-by: galaunay --- snippets/python-mode/.yas-setup.el | 31 +++++++++++++-------- snippets/python-mode/__abs__ | 7 +++++ snippets/python-mode/__add__ | 7 +++++ snippets/python-mode/__and__ | 7 +++++ snippets/python-mode/__bool__ | 7 +++++ snippets/python-mode/__call__ | 7 +++++ snippets/python-mode/__cmp__ | 7 +++++ snippets/python-mode/__complex__ | 7 +++++ snippets/python-mode/__contains__ | 8 +++--- snippets/python-mode/__del__ | 7 +++++ snippets/python-mode/__delattr__ | 7 +++++ snippets/python-mode/__delete__ | 7 +++++ snippets/python-mode/__delitem__ | 7 +++++ snippets/python-mode/__div__ | 7 +++++ snippets/python-mode/__divmod__ | 7 +++++ snippets/python-mode/__enter__ | 6 ++-- snippets/python-mode/{eq => __eq__} | 6 ++-- snippets/python-mode/__exit__ | 8 +++--- snippets/python-mode/__float__ | 7 +++++ snippets/python-mode/__floordiv__ | 7 +++++ snippets/python-mode/__ge__ | 7 +++++ snippets/python-mode/__get__ | 7 +++++ snippets/python-mode/__getattr__ | 7 +++++ snippets/python-mode/__getattribute__ | 7 +++++ snippets/python-mode/__getitem__ | 8 +++--- snippets/python-mode/__gt__ | 7 +++++ snippets/python-mode/__hash__ | 7 +++++ snippets/python-mode/__iadd__ | 7 +++++ snippets/python-mode/__iand__ | 7 +++++ snippets/python-mode/__idiv__ | 7 +++++ snippets/python-mode/__ifloordiv__ | 7 +++++ snippets/python-mode/__ilshift__ | 7 +++++ snippets/python-mode/__imod__ | 7 +++++ snippets/python-mode/__imul__ | 7 +++++ snippets/python-mode/__index__ | 7 +++++ snippets/python-mode/{init => __init__} | 6 ++-- snippets/python-mode/__instancecheck__ | 7 +++++ snippets/python-mode/__int__ | 7 +++++ snippets/python-mode/__invert__ | 7 +++++ snippets/python-mode/__ior__ | 7 +++++ snippets/python-mode/__ipow__ | 7 +++++ snippets/python-mode/__irshift__ | 7 +++++ snippets/python-mode/__isub__ | 7 +++++ snippets/python-mode/__iter__ | 7 +++++ snippets/python-mode/__itruediv__ | 7 +++++ snippets/python-mode/__ixor__ | 7 +++++ snippets/python-mode/__le__ | 7 +++++ snippets/python-mode/__len__ | 6 ++-- snippets/python-mode/__lshift__ | 7 +++++ snippets/python-mode/__lt__ | 7 +++++ snippets/python-mode/__mod__ | 7 +++++ snippets/python-mode/__mul__ | 7 +++++ snippets/python-mode/__ne__ | 7 +++++ snippets/python-mode/__neg__ | 7 +++++ snippets/python-mode/__new__ | 4 +-- snippets/python-mode/__or__ | 7 +++++ snippets/python-mode/__pos__ | 7 +++++ snippets/python-mode/__pow__ | 7 +++++ snippets/python-mode/__radd__ | 7 +++++ snippets/python-mode/__rand__ | 7 +++++ snippets/python-mode/__rdivmod__ | 7 +++++ snippets/python-mode/{repr => __repr__} | 6 ++-- snippets/python-mode/__reversed__ | 7 +++++ snippets/python-mode/__rfloordiv__ | 7 +++++ snippets/python-mode/__rlshift__ | 7 +++++ snippets/python-mode/__rmod__ | 7 +++++ snippets/python-mode/__rmul__ | 7 +++++ snippets/python-mode/__ror__ | 7 +++++ snippets/python-mode/__rpow__ | 7 +++++ snippets/python-mode/__rrshift__ | 7 +++++ snippets/python-mode/__rshift__ | 7 +++++ snippets/python-mode/__rsub__ | 7 +++++ snippets/python-mode/__rtruediv__ | 7 +++++ snippets/python-mode/__rxor__ | 7 +++++ snippets/python-mode/__set__ | 7 +++++ snippets/python-mode/__setattr__ | 7 +++++ snippets/python-mode/__setitem__ | 8 +++--- snippets/python-mode/__slots__ | 7 +++++ snippets/python-mode/{str => __str__} | 6 ++-- snippets/python-mode/__sub__ | 7 +++++ snippets/python-mode/__subclasscheck__ | 7 +++++ snippets/python-mode/__truediv__ | 7 +++++ snippets/python-mode/__xor__ | 7 +++++ snippets/python-mode/all | 3 +- snippets/python-mode/arg_positional | 4 +-- snippets/python-mode/ase | 6 ++++ snippets/python-mode/asne | 6 ++++ snippets/python-mode/asr | 7 +++++ snippets/python-mode/assert | 2 +- snippets/python-mode/assertEqual | 2 +- snippets/python-mode/assertFalse | 2 +- snippets/python-mode/assertIn | 2 +- snippets/python-mode/assertNotEqual | 2 +- snippets/python-mode/assertNotIn | 2 +- snippets/python-mode/assertRaises | 2 +- snippets/python-mode/assertTrue | 2 +- snippets/python-mode/bang | 2 +- snippets/python-mode/celery_pdb | 2 +- snippets/python-mode/class_doxygen_doc | 2 +- snippets/python-mode/classmethod | 2 +- snippets/python-mode/dec | 2 +- snippets/python-mode/def | 7 +++++ snippets/python-mode/deftest | 2 +- snippets/python-mode/django_test_class | 4 +-- snippets/python-mode/doc | 2 +- snippets/python-mode/doctest | 4 +-- snippets/python-mode/env | 6 ++++ snippets/python-mode/for | 2 +- snippets/python-mode/from | 7 +++-- snippets/python-mode/function_docstring | 2 +- snippets/python-mode/function_doxygen_doc | 2 +- snippets/python-mode/ife | 1 + snippets/python-mode/ifmain | 2 +- snippets/python-mode/import | 2 +- snippets/python-mode/init_docstring | 2 +- snippets/python-mode/interact | 2 +- snippets/python-mode/ipdb | 2 +- snippets/python-mode/iter | 4 +-- snippets/python-mode/lambda | 2 +- snippets/python-mode/list | 2 +- snippets/python-mode/logger_name | 2 +- snippets/python-mode/main | 2 +- snippets/python-mode/metaclass | 6 ---- snippets/python-mode/method | 2 +- snippets/python-mode/method_docstring | 2 +- snippets/python-mode/method_docstring_numpy | 2 +- snippets/python-mode/not_impl | 2 +- snippets/python-mode/np | 2 +- snippets/python-mode/parse_args | 2 +- snippets/python-mode/parser | 2 +- snippets/python-mode/pass | 2 +- snippets/python-mode/pdb | 2 +- snippets/python-mode/print | 2 +- snippets/python-mode/prop | 3 +- snippets/python-mode/pudb | 2 +- snippets/python-mode/reg | 2 +- snippets/python-mode/return | 2 +- snippets/python-mode/self | 2 +- snippets/python-mode/self_without_dot | 2 +- snippets/python-mode/selfassign | 2 +- snippets/python-mode/setdef | 2 +- snippets/python-mode/size | 2 +- snippets/python-mode/super | 7 ----- snippets/python-mode/test_file | 2 +- snippets/python-mode/try | 3 +- snippets/python-mode/tryelse | 5 ++-- snippets/python-mode/unicode | 7 ----- snippets/python-mode/unicode_literals | 6 ---- snippets/python-mode/while | 2 +- snippets/python-mode/with | 2 +- snippets/python-mode/with_statement | 6 ---- yasnippet-snippets.el | 4 --- 152 files changed, 654 insertions(+), 148 deletions(-) create mode 100644 snippets/python-mode/__abs__ create mode 100644 snippets/python-mode/__add__ create mode 100644 snippets/python-mode/__and__ create mode 100644 snippets/python-mode/__bool__ create mode 100644 snippets/python-mode/__call__ create mode 100644 snippets/python-mode/__cmp__ create mode 100644 snippets/python-mode/__complex__ create mode 100644 snippets/python-mode/__del__ create mode 100644 snippets/python-mode/__delattr__ create mode 100644 snippets/python-mode/__delete__ create mode 100644 snippets/python-mode/__delitem__ create mode 100644 snippets/python-mode/__div__ create mode 100644 snippets/python-mode/__divmod__ rename snippets/python-mode/{eq => __eq__} (51%) create mode 100644 snippets/python-mode/__float__ create mode 100644 snippets/python-mode/__floordiv__ create mode 100644 snippets/python-mode/__ge__ create mode 100644 snippets/python-mode/__get__ create mode 100644 snippets/python-mode/__getattr__ create mode 100644 snippets/python-mode/__getattribute__ create mode 100644 snippets/python-mode/__gt__ create mode 100644 snippets/python-mode/__hash__ create mode 100644 snippets/python-mode/__iadd__ create mode 100644 snippets/python-mode/__iand__ create mode 100644 snippets/python-mode/__idiv__ create mode 100644 snippets/python-mode/__ifloordiv__ create mode 100644 snippets/python-mode/__ilshift__ create mode 100644 snippets/python-mode/__imod__ create mode 100644 snippets/python-mode/__imul__ create mode 100644 snippets/python-mode/__index__ rename snippets/python-mode/{init => __init__} (73%) create mode 100644 snippets/python-mode/__instancecheck__ create mode 100644 snippets/python-mode/__int__ create mode 100644 snippets/python-mode/__invert__ create mode 100644 snippets/python-mode/__ior__ create mode 100644 snippets/python-mode/__ipow__ create mode 100644 snippets/python-mode/__irshift__ create mode 100644 snippets/python-mode/__isub__ create mode 100644 snippets/python-mode/__iter__ create mode 100644 snippets/python-mode/__itruediv__ create mode 100644 snippets/python-mode/__ixor__ create mode 100644 snippets/python-mode/__le__ create mode 100644 snippets/python-mode/__lshift__ create mode 100644 snippets/python-mode/__lt__ create mode 100644 snippets/python-mode/__mod__ create mode 100644 snippets/python-mode/__mul__ create mode 100644 snippets/python-mode/__ne__ create mode 100644 snippets/python-mode/__neg__ create mode 100644 snippets/python-mode/__or__ create mode 100644 snippets/python-mode/__pos__ create mode 100644 snippets/python-mode/__pow__ create mode 100644 snippets/python-mode/__radd__ create mode 100644 snippets/python-mode/__rand__ create mode 100644 snippets/python-mode/__rdivmod__ rename snippets/python-mode/{repr => __repr__} (55%) create mode 100644 snippets/python-mode/__reversed__ create mode 100644 snippets/python-mode/__rfloordiv__ create mode 100644 snippets/python-mode/__rlshift__ create mode 100644 snippets/python-mode/__rmod__ create mode 100644 snippets/python-mode/__rmul__ create mode 100644 snippets/python-mode/__ror__ create mode 100644 snippets/python-mode/__rpow__ create mode 100644 snippets/python-mode/__rrshift__ create mode 100644 snippets/python-mode/__rshift__ create mode 100644 snippets/python-mode/__rsub__ create mode 100644 snippets/python-mode/__rtruediv__ create mode 100644 snippets/python-mode/__rxor__ create mode 100644 snippets/python-mode/__set__ create mode 100644 snippets/python-mode/__setattr__ create mode 100644 snippets/python-mode/__slots__ rename snippets/python-mode/{str => __str__} (55%) create mode 100644 snippets/python-mode/__sub__ create mode 100644 snippets/python-mode/__subclasscheck__ create mode 100644 snippets/python-mode/__truediv__ create mode 100644 snippets/python-mode/__xor__ create mode 100644 snippets/python-mode/ase create mode 100644 snippets/python-mode/asne create mode 100644 snippets/python-mode/asr create mode 100644 snippets/python-mode/def create mode 100644 snippets/python-mode/env delete mode 100644 snippets/python-mode/metaclass delete mode 100644 snippets/python-mode/super delete mode 100644 snippets/python-mode/unicode delete mode 100644 snippets/python-mode/unicode_literals delete mode 100644 snippets/python-mode/with_statement diff --git a/snippets/python-mode/.yas-setup.el b/snippets/python-mode/.yas-setup.el index 76af532bb..8b292156b 100644 --- a/snippets/python-mode/.yas-setup.el +++ b/snippets/python-mode/.yas-setup.el @@ -1,23 +1,33 @@ (require 'yasnippet) (defvar yas-text) +(defvar python-split-arg-arg-regex +"\\([[:alnum:]*]+\\)\\(:[[:blank:]]*[[:alpha:]]*\\)?\\([[:blank:]]*=[[:blank:]]*[[:alnum:]]*\\)?" +"Regular expression matching an argument of a python function. +First group should give the argument name.") + +(defvar python-split-arg-separator +"[[:space:]]*,[[:space:]]*" +"Regular expression matching the separator in a list of argument.") + (defun python-split-args (arg-string) - "Split a python argument string into ((name, default)..) tuples" + "Split a python argument string ARG-STRING into a tuple of argument names." (mapcar (lambda (x) - (split-string x "[[:blank:]]*=[[:blank:]]*" t)) - (split-string arg-string "[[:blank:]]*,[[:blank:]]*" t))) + (when (string-match python-split-arg-arg-regex x) + (match-string-no-properties 1 x))) + (split-string arg-string python-split-arg-separator t))) (defun python-args-to-docstring () - "return docstring format for the python arguments in yas-text" + "Return docstring format for the python arguments in yas-text." (let* ((indent (concat "\n" (make-string (current-column) 32))) (args (python-split-args yas-text)) (max-len (if args (apply 'max (mapcar (lambda (x) (length (nth 0 x))) args)) 0)) (formatted-args (mapconcat - (lambda (x) - (concat (nth 0 x) (make-string (- max-len (length (nth 0 x))) ? ) " -- " - (if (nth 1 x) (concat "\(default " (nth 1 x) "\)")))) - args - indent))) + (lambda (x) + (concat (nth 0 x) (make-string (- max-len (length (nth 0 x))) ? ) " -- " + (if (nth 1 x) (concat "\(default " (nth 1 x) "\)")))) + args + indent))) (unless (string= formatted-args "") (mapconcat 'identity (list "Keyword Arguments:" formatted-args) indent)))) @@ -33,6 +43,3 @@ (list "\nParameters\n----------" formatted-params "\nReturns\n-------" formatted-ret) "\n")))) - - -(add-hook 'python-mode-hook #'yasnippet-snippets--fixed-indent) diff --git a/snippets/python-mode/__abs__ b/snippets/python-mode/__abs__ new file mode 100644 index 000000000..67967be41 --- /dev/null +++ b/snippets/python-mode/__abs__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __abs__ +# key: _abs +# group: Special methods +# -- +def __abs__(self): + return $0 diff --git a/snippets/python-mode/__add__ b/snippets/python-mode/__add__ new file mode 100644 index 000000000..9fef7476d --- /dev/null +++ b/snippets/python-mode/__add__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __add__ +# key: _add +# group: Special methods +# -- +def __add__(self, other): + return $0 diff --git a/snippets/python-mode/__and__ b/snippets/python-mode/__and__ new file mode 100644 index 000000000..74c1c2a56 --- /dev/null +++ b/snippets/python-mode/__and__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __and__ +# key: _and +# group: Special methods +# -- +def __and__(self, other): + return $0 diff --git a/snippets/python-mode/__bool__ b/snippets/python-mode/__bool__ new file mode 100644 index 000000000..fd53fd36d --- /dev/null +++ b/snippets/python-mode/__bool__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __bool__ +# key: _bool +# group: Special methods +# -- +def __bool__(self): + return $0 diff --git a/snippets/python-mode/__call__ b/snippets/python-mode/__call__ new file mode 100644 index 000000000..e807be58a --- /dev/null +++ b/snippets/python-mode/__call__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __call__ +# key: _call +# group: Special methods +# -- +def __call__(self, ${1:*args}): + return $0 diff --git a/snippets/python-mode/__cmp__ b/snippets/python-mode/__cmp__ new file mode 100644 index 000000000..ed18d210a --- /dev/null +++ b/snippets/python-mode/__cmp__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __cmp__ +# key: _cmp +# group: Special methods +# -- +def __cmp__(self, other): + return $0 diff --git a/snippets/python-mode/__complex__ b/snippets/python-mode/__complex__ new file mode 100644 index 000000000..69ced6489 --- /dev/null +++ b/snippets/python-mode/__complex__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __complex__ +# key: _complex +# group: Special methods +# -- +def __complex__(self): + return $0 diff --git a/snippets/python-mode/__contains__ b/snippets/python-mode/__contains__ index 4d4ad501c..4fca9004f 100644 --- a/snippets/python-mode/__contains__ +++ b/snippets/python-mode/__contains__ @@ -1,7 +1,7 @@ # -*- mode: snippet -*- # name: __contains__ -# key: cont -# group: dunder methods +# key: _contains +# group: Special methods # -- -def __contains__(self, el): - $0 \ No newline at end of file +def __contains__(self, item): + return $0 diff --git a/snippets/python-mode/__del__ b/snippets/python-mode/__del__ new file mode 100644 index 000000000..1f5673c34 --- /dev/null +++ b/snippets/python-mode/__del__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __del__ +# key: _del +# group: Special methods +# -- +def __del__(self): + $0 diff --git a/snippets/python-mode/__delattr__ b/snippets/python-mode/__delattr__ new file mode 100644 index 000000000..2c8ce9c9e --- /dev/null +++ b/snippets/python-mode/__delattr__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __delattr__ +# key: _delattr +# group: Special methods +# -- +def __delattr__(self, name): + $0 diff --git a/snippets/python-mode/__delete__ b/snippets/python-mode/__delete__ new file mode 100644 index 000000000..700de5b1a --- /dev/null +++ b/snippets/python-mode/__delete__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __delete__ +# key: _delete +# group: Special methods +# -- +def __delete__(self, instance): + $0 diff --git a/snippets/python-mode/__delitem__ b/snippets/python-mode/__delitem__ new file mode 100644 index 000000000..d84351993 --- /dev/null +++ b/snippets/python-mode/__delitem__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __delitem__ +# key: _delitem +# group: Special methods +# -- +def __delitem__(self, key): + $0 diff --git a/snippets/python-mode/__div__ b/snippets/python-mode/__div__ new file mode 100644 index 000000000..3e774f5d8 --- /dev/null +++ b/snippets/python-mode/__div__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __div__ +# key: _div +# group: Special methods +# -- +def __div__(self, other): + return $0 diff --git a/snippets/python-mode/__divmod__ b/snippets/python-mode/__divmod__ new file mode 100644 index 000000000..b2daa769b --- /dev/null +++ b/snippets/python-mode/__divmod__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __divmod__ +# key: _divmod +# group: Special methods +# -- +def __divmod__(self, other): + return $0 diff --git a/snippets/python-mode/__enter__ b/snippets/python-mode/__enter__ index 3dcc3ba65..9508a3276 100644 --- a/snippets/python-mode/__enter__ +++ b/snippets/python-mode/__enter__ @@ -1,9 +1,9 @@ # -*- mode: snippet -*- # name: __enter__ -# key: ent -# group: dunder methods +# key: _enter +# group: Special methods # -- def __enter__(self): $0 - return self \ No newline at end of file + return self diff --git a/snippets/python-mode/eq b/snippets/python-mode/__eq__ similarity index 51% rename from snippets/python-mode/eq rename to snippets/python-mode/__eq__ index e19c32851..7fdb0b453 100644 --- a/snippets/python-mode/eq +++ b/snippets/python-mode/__eq__ @@ -1,7 +1,7 @@ # -*- mode: snippet -*- # name: __eq__ -# key: eq -# group: dunder methods +# key: _eq +# group: Special methods # -- def __eq__(self, other): - return self.$1 == other.$1 \ No newline at end of file + return $0 diff --git a/snippets/python-mode/__exit__ b/snippets/python-mode/__exit__ index cd9de7d2f..2bac6f240 100644 --- a/snippets/python-mode/__exit__ +++ b/snippets/python-mode/__exit__ @@ -1,7 +1,7 @@ # -*- mode: snippet -*- # name: __exit__ -# key: ex -# group: dunder methods +# key: _exit +# group: Special methods # -- -def __exit__(self, type, value, traceback): - $0 \ No newline at end of file +def __exit__(self, exc_type, exc_value, traceback): + $0 diff --git a/snippets/python-mode/__float__ b/snippets/python-mode/__float__ new file mode 100644 index 000000000..d1f81ab18 --- /dev/null +++ b/snippets/python-mode/__float__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __float__ +# key: _float +# group: Special methods +# -- +def __float__(self): + return $0 diff --git a/snippets/python-mode/__floordiv__ b/snippets/python-mode/__floordiv__ new file mode 100644 index 000000000..c335b587e --- /dev/null +++ b/snippets/python-mode/__floordiv__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __floordiv__ +# key: _floordiv +# group: Special methods +# -- +def __floordiv__(self, other): + return $0 diff --git a/snippets/python-mode/__ge__ b/snippets/python-mode/__ge__ new file mode 100644 index 000000000..97f687303 --- /dev/null +++ b/snippets/python-mode/__ge__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __ge__ +# key: _ge +# group: Special methods +# -- +def __ge__(self, other): + return $0 diff --git a/snippets/python-mode/__get__ b/snippets/python-mode/__get__ new file mode 100644 index 000000000..3df0d71dd --- /dev/null +++ b/snippets/python-mode/__get__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __get__ +# key: _get +# group: Special methods +# -- +def __get__(self, instance, owner=None): + return $0 diff --git a/snippets/python-mode/__getattr__ b/snippets/python-mode/__getattr__ new file mode 100644 index 000000000..110d0d017 --- /dev/null +++ b/snippets/python-mode/__getattr__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __getattr__ +# key: _getattr +# group: Special methods +# -- +def __getattr__(self, name): + return $0 diff --git a/snippets/python-mode/__getattribute__ b/snippets/python-mode/__getattribute__ new file mode 100644 index 000000000..22935eb8e --- /dev/null +++ b/snippets/python-mode/__getattribute__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __getattribute__ +# key: _getattribute +# group: Special methods +# -- +def __getattribute__(self, name): + return $0 diff --git a/snippets/python-mode/__getitem__ b/snippets/python-mode/__getitem__ index 939bd1af9..cd0877551 100644 --- a/snippets/python-mode/__getitem__ +++ b/snippets/python-mode/__getitem__ @@ -1,7 +1,7 @@ # -*- mode: snippet -*- # name: __getitem__ -# key: getit -# group: dunder methods +# key: _getitem +# group: Special methods # -- -def __getitem__(self, ${1:key}): - $0 \ No newline at end of file +def __getitem__(self, key): + return $0 diff --git a/snippets/python-mode/__gt__ b/snippets/python-mode/__gt__ new file mode 100644 index 000000000..527717eb7 --- /dev/null +++ b/snippets/python-mode/__gt__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __gt__ +# key: _gt +# group: Special methods +# -- +def __gt__(self, other): + return $0 diff --git a/snippets/python-mode/__hash__ b/snippets/python-mode/__hash__ new file mode 100644 index 000000000..e059f5a82 --- /dev/null +++ b/snippets/python-mode/__hash__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __hash__ +# key: _hash +# group: Special methods +# -- +def __hash__(self): + return $0 diff --git a/snippets/python-mode/__iadd__ b/snippets/python-mode/__iadd__ new file mode 100644 index 000000000..77108c267 --- /dev/null +++ b/snippets/python-mode/__iadd__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __iadd__ +# key: _iadd +# group: Special methods +# -- +def __iadd__(self, other): + return $0 diff --git a/snippets/python-mode/__iand__ b/snippets/python-mode/__iand__ new file mode 100644 index 000000000..8b61e1cff --- /dev/null +++ b/snippets/python-mode/__iand__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __iand__ +# key: _iand +# group: Special methods +# -- +def __iand__(self, other): + return $0 diff --git a/snippets/python-mode/__idiv__ b/snippets/python-mode/__idiv__ new file mode 100644 index 000000000..c9e5609f4 --- /dev/null +++ b/snippets/python-mode/__idiv__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __idiv__ +# key: _idiv +# group: Special methods +# -- +def __idiv__(self, other): + return $0 diff --git a/snippets/python-mode/__ifloordiv__ b/snippets/python-mode/__ifloordiv__ new file mode 100644 index 000000000..fd40fd280 --- /dev/null +++ b/snippets/python-mode/__ifloordiv__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __ifloordiv__ +# key: _ifloordiv +# group: Special methods +# -- +def __ifloordiv__(self, other): + return $0 diff --git a/snippets/python-mode/__ilshift__ b/snippets/python-mode/__ilshift__ new file mode 100644 index 000000000..8e4576337 --- /dev/null +++ b/snippets/python-mode/__ilshift__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __ilshift__ +# key: _ilshift +# group: Special methods +# -- +def __ilshift__(self, other): + return $0 diff --git a/snippets/python-mode/__imod__ b/snippets/python-mode/__imod__ new file mode 100644 index 000000000..5d3f70e6b --- /dev/null +++ b/snippets/python-mode/__imod__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __imod__ +# key: _imod +# group: Special methods +# -- +def __imod__(self, other): + return $0 diff --git a/snippets/python-mode/__imul__ b/snippets/python-mode/__imul__ new file mode 100644 index 000000000..ecf66b6e6 --- /dev/null +++ b/snippets/python-mode/__imul__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __imul__ +# key: _imul +# group: Special methods +# -- +def __imul__(self, other): + return $0 diff --git a/snippets/python-mode/__index__ b/snippets/python-mode/__index__ new file mode 100644 index 000000000..e03b1c7f0 --- /dev/null +++ b/snippets/python-mode/__index__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __index__ +# key: _index +# group: Special methods +# -- +def __index__(self): + return $0 diff --git a/snippets/python-mode/init b/snippets/python-mode/__init__ similarity index 73% rename from snippets/python-mode/init rename to snippets/python-mode/__init__ index aece55c49..17fcddfd5 100644 --- a/snippets/python-mode/init +++ b/snippets/python-mode/__init__ @@ -1,8 +1,8 @@ # -*- mode: snippet -*- -# name: init -# key: init +# name: __init__ +# key: _init # group : definitions # -- def __init__(self${1:, args}): ${2:"${3:docstring}" - }$0 \ No newline at end of file + }$0 diff --git a/snippets/python-mode/__instancecheck__ b/snippets/python-mode/__instancecheck__ new file mode 100644 index 000000000..8a5e42975 --- /dev/null +++ b/snippets/python-mode/__instancecheck__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __instancecheck__ +# key: _instancecheck +# group: Special methods +# -- +def __instancecheck__(self, instance): + return $0 diff --git a/snippets/python-mode/__int__ b/snippets/python-mode/__int__ new file mode 100644 index 000000000..01224927e --- /dev/null +++ b/snippets/python-mode/__int__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __int__ +# key: _int +# group: Special methods +# -- +def __int__(self): + $0 diff --git a/snippets/python-mode/__invert__ b/snippets/python-mode/__invert__ new file mode 100644 index 000000000..e5e0a2de8 --- /dev/null +++ b/snippets/python-mode/__invert__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __invert__ +# key: _invert +# group: Special methods +# -- +def __invert__(self): + return $0 diff --git a/snippets/python-mode/__ior__ b/snippets/python-mode/__ior__ new file mode 100644 index 000000000..07ce0dcac --- /dev/null +++ b/snippets/python-mode/__ior__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __ior__ +# key: _ior +# group: Special methods +# -- +def __ior__(self, other): + return $0 diff --git a/snippets/python-mode/__ipow__ b/snippets/python-mode/__ipow__ new file mode 100644 index 000000000..8f0ea5d59 --- /dev/null +++ b/snippets/python-mode/__ipow__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __ipow__ +# key: _ipow +# group: Special methods +# -- +def __ipow__(self, other): + return $0 diff --git a/snippets/python-mode/__irshift__ b/snippets/python-mode/__irshift__ new file mode 100644 index 000000000..b250a5a96 --- /dev/null +++ b/snippets/python-mode/__irshift__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __irshift__ +# key: _irshift +# group: Special methods +# -- +def __irshift__(self, other): + return $0 diff --git a/snippets/python-mode/__isub__ b/snippets/python-mode/__isub__ new file mode 100644 index 000000000..abd0888c5 --- /dev/null +++ b/snippets/python-mode/__isub__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __isub__ +# key: _isub +# group: Special methods +# -- +def __isub__(self, other): + return $0 diff --git a/snippets/python-mode/__iter__ b/snippets/python-mode/__iter__ new file mode 100644 index 000000000..29414ad27 --- /dev/null +++ b/snippets/python-mode/__iter__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __iter__ +# key: _iter +# group: Special methods +# -- +def __iter__(self): + $0 diff --git a/snippets/python-mode/__itruediv__ b/snippets/python-mode/__itruediv__ new file mode 100644 index 000000000..3332f321e --- /dev/null +++ b/snippets/python-mode/__itruediv__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __itruediv__ +# key: _itruediv +# group: Special methods +# -- +def __itruediv__(self, other): + return $0 diff --git a/snippets/python-mode/__ixor__ b/snippets/python-mode/__ixor__ new file mode 100644 index 000000000..dae309506 --- /dev/null +++ b/snippets/python-mode/__ixor__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __ixor__ +# key: _ixor +# group: Special methods +# -- +def __ixor__(self, other): + return $0 diff --git a/snippets/python-mode/__le__ b/snippets/python-mode/__le__ new file mode 100644 index 000000000..774188b25 --- /dev/null +++ b/snippets/python-mode/__le__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __le__ +# key: _le +# group: Special methods +# -- +def __le__(self, other): + return $0 diff --git a/snippets/python-mode/__len__ b/snippets/python-mode/__len__ index 9e6c16496..e5544cb24 100644 --- a/snippets/python-mode/__len__ +++ b/snippets/python-mode/__len__ @@ -1,7 +1,7 @@ # -*- mode: snippet -*- # name: __len__ -# key: len -# group: dunder methods +# key: _len +# group: Special methods # -- def __len__(self): - $0 \ No newline at end of file + return $0 diff --git a/snippets/python-mode/__lshift__ b/snippets/python-mode/__lshift__ new file mode 100644 index 000000000..bfb4cc2d9 --- /dev/null +++ b/snippets/python-mode/__lshift__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __lshift__ +# key: _lshift +# group: Special methods +# -- +def __lshift__(self, other): + return $0 diff --git a/snippets/python-mode/__lt__ b/snippets/python-mode/__lt__ new file mode 100644 index 000000000..8c34b05d5 --- /dev/null +++ b/snippets/python-mode/__lt__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __lt__ +# key: _lt +# group: Special methods +# -- +def __lt__(self, other): + return $0 diff --git a/snippets/python-mode/__mod__ b/snippets/python-mode/__mod__ new file mode 100644 index 000000000..22a987e48 --- /dev/null +++ b/snippets/python-mode/__mod__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __mod__ +# key: _mod +# group: Special methods +# -- +def __mod__(self, other): + return $0 diff --git a/snippets/python-mode/__mul__ b/snippets/python-mode/__mul__ new file mode 100644 index 000000000..d8fae7c45 --- /dev/null +++ b/snippets/python-mode/__mul__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __mul__ +# key: _mul +# group: Special methods +# -- +def __mul__(self, other): + return $0 diff --git a/snippets/python-mode/__ne__ b/snippets/python-mode/__ne__ new file mode 100644 index 000000000..0ed5f8f62 --- /dev/null +++ b/snippets/python-mode/__ne__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __ne__ +# key: _ne +# group: Special methods +# -- +def __ne__(self, other): + return $0 diff --git a/snippets/python-mode/__neg__ b/snippets/python-mode/__neg__ new file mode 100644 index 000000000..7e56f6b51 --- /dev/null +++ b/snippets/python-mode/__neg__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __neg__ +# key: _neg +# group: Special methods +# -- +def __neg__(self): + return $0 diff --git a/snippets/python-mode/__new__ b/snippets/python-mode/__new__ index 8ccb151ef..28ccc0b3e 100644 --- a/snippets/python-mode/__new__ +++ b/snippets/python-mode/__new__ @@ -1,7 +1,7 @@ # -*- mode: snippet -*- # name: __new__ -# key: new -# group: dunder methods +# key: _new +# group: Special methods # -- def __new__(mcs, name, bases, dct): $0 diff --git a/snippets/python-mode/__or__ b/snippets/python-mode/__or__ new file mode 100644 index 000000000..f6589061a --- /dev/null +++ b/snippets/python-mode/__or__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __or__ +# key: _or +# group: Special methods +# -- +def __or__(self, other): + return $0 diff --git a/snippets/python-mode/__pos__ b/snippets/python-mode/__pos__ new file mode 100644 index 000000000..de08b0975 --- /dev/null +++ b/snippets/python-mode/__pos__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __pos__ +# key: _pos +# group: Special methods +# -- +def __pos__(self): + return $0 diff --git a/snippets/python-mode/__pow__ b/snippets/python-mode/__pow__ new file mode 100644 index 000000000..4006c0a0e --- /dev/null +++ b/snippets/python-mode/__pow__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __pow__ +# key: _pow +# group: Special methods +# -- +def __pow__(self, other, modulo=None): + return $0 diff --git a/snippets/python-mode/__radd__ b/snippets/python-mode/__radd__ new file mode 100644 index 000000000..5fa27d13e --- /dev/null +++ b/snippets/python-mode/__radd__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __radd__ +# key: _radd +# group: Special methods +# -- +def __radd__(self, other): + return $0 diff --git a/snippets/python-mode/__rand__ b/snippets/python-mode/__rand__ new file mode 100644 index 000000000..e3156ef71 --- /dev/null +++ b/snippets/python-mode/__rand__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __rand__ +# key: _rand +# group: Special methods +# -- +def __rand__(self, other): + return $0 diff --git a/snippets/python-mode/__rdivmod__ b/snippets/python-mode/__rdivmod__ new file mode 100644 index 000000000..4fc1ccb39 --- /dev/null +++ b/snippets/python-mode/__rdivmod__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __rdivmod__ +# key: _rdivmod +# group: Special methods +# -- +def __rdivmod__(self, other): + return $0 diff --git a/snippets/python-mode/repr b/snippets/python-mode/__repr__ similarity index 55% rename from snippets/python-mode/repr rename to snippets/python-mode/__repr__ index a1f67833f..85cb80f04 100644 --- a/snippets/python-mode/repr +++ b/snippets/python-mode/__repr__ @@ -1,7 +1,7 @@ # -*- mode: snippet -*- # name: __repr__ -# key: repr -# group: dunder methods +# key: _repr +# group: Special methods # -- def __repr__(self): - $0 \ No newline at end of file + return $0 diff --git a/snippets/python-mode/__reversed__ b/snippets/python-mode/__reversed__ new file mode 100644 index 000000000..ff2a5a12a --- /dev/null +++ b/snippets/python-mode/__reversed__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __reversed__ +# key: _reversed +# group: Special methods +# -- +def __reversed__(self): + return $0 diff --git a/snippets/python-mode/__rfloordiv__ b/snippets/python-mode/__rfloordiv__ new file mode 100644 index 000000000..cb5375df6 --- /dev/null +++ b/snippets/python-mode/__rfloordiv__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __rfloordiv__ +# key: _rfloordiv +# group: Special methods +# -- +def __rfloordiv__(self, other): + return $0 diff --git a/snippets/python-mode/__rlshift__ b/snippets/python-mode/__rlshift__ new file mode 100644 index 000000000..64a676196 --- /dev/null +++ b/snippets/python-mode/__rlshift__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __rlshift__ +# key: _rlshift +# group: Special methods +# -- +def __rlshift__(self, other): + return $0 diff --git a/snippets/python-mode/__rmod__ b/snippets/python-mode/__rmod__ new file mode 100644 index 000000000..1b4e035ef --- /dev/null +++ b/snippets/python-mode/__rmod__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __rmod__ +# key: _rmod +# group: Special methods +# -- +def __rmod__(self, other): + return $0 diff --git a/snippets/python-mode/__rmul__ b/snippets/python-mode/__rmul__ new file mode 100644 index 000000000..459d5323e --- /dev/null +++ b/snippets/python-mode/__rmul__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __rmul__ +# key: _rmul +# group: Special methods +# -- +def __rmul__(self, other): + return $0 diff --git a/snippets/python-mode/__ror__ b/snippets/python-mode/__ror__ new file mode 100644 index 000000000..91293cbd6 --- /dev/null +++ b/snippets/python-mode/__ror__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __ror__ +# key: _ror +# group: Special methods +# -- +def __ror__(self, other): + return $0 diff --git a/snippets/python-mode/__rpow__ b/snippets/python-mode/__rpow__ new file mode 100644 index 000000000..2521f161c --- /dev/null +++ b/snippets/python-mode/__rpow__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __rpow__ +# key: _rpow +# group: Special methods +# -- +def __rpow__(self, other): + return $0 diff --git a/snippets/python-mode/__rrshift__ b/snippets/python-mode/__rrshift__ new file mode 100644 index 000000000..78f4ae7e9 --- /dev/null +++ b/snippets/python-mode/__rrshift__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __rrshift__ +# key: _rrshift +# group: Special methods +# -- +def __rrshift__(self, other): + return $0 diff --git a/snippets/python-mode/__rshift__ b/snippets/python-mode/__rshift__ new file mode 100644 index 000000000..061c396b8 --- /dev/null +++ b/snippets/python-mode/__rshift__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __rshift__ +# key: _rshift +# group: Special methods +# -- +def __rshift__(self, other): + return $0 diff --git a/snippets/python-mode/__rsub__ b/snippets/python-mode/__rsub__ new file mode 100644 index 000000000..1d7b24325 --- /dev/null +++ b/snippets/python-mode/__rsub__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __rsub__ +# key: _rsub +# group: Special methods +# -- +def __rsub__(self, other): + return $0 diff --git a/snippets/python-mode/__rtruediv__ b/snippets/python-mode/__rtruediv__ new file mode 100644 index 000000000..a0cba2cd4 --- /dev/null +++ b/snippets/python-mode/__rtruediv__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __rtruediv__ +# key: _rtruediv +# group: Special methods +# -- +def __rtruediv__(self, other): + return $0 diff --git a/snippets/python-mode/__rxor__ b/snippets/python-mode/__rxor__ new file mode 100644 index 000000000..b5473ad25 --- /dev/null +++ b/snippets/python-mode/__rxor__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __rxor__ +# key: _rxor +# group: Special methods +# -- +def __rxor__(self, other): + return $0 diff --git a/snippets/python-mode/__set__ b/snippets/python-mode/__set__ new file mode 100644 index 000000000..19572c15f --- /dev/null +++ b/snippets/python-mode/__set__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __set__ +# key: _set +# group: Special methods +# -- +def __set__(self, instance, value): + $0 diff --git a/snippets/python-mode/__setattr__ b/snippets/python-mode/__setattr__ new file mode 100644 index 000000000..5311cf0ee --- /dev/null +++ b/snippets/python-mode/__setattr__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __setattr__ +# key: _setattr +# group: Special methods +# -- +def __setattr__(self, name, value): + $0 diff --git a/snippets/python-mode/__setitem__ b/snippets/python-mode/__setitem__ index c7db5b13a..0287f0e5f 100644 --- a/snippets/python-mode/__setitem__ +++ b/snippets/python-mode/__setitem__ @@ -1,7 +1,7 @@ # -*- mode: snippet -*- # name: __setitem__ -# key: setit -# group: dunder methods +# key: _setitem +# group: Special methods # -- -def __setitem__(self, ${1:key}, ${2:val}): - $0 \ No newline at end of file +def __setitem__(self, key, value): + $0 diff --git a/snippets/python-mode/__slots__ b/snippets/python-mode/__slots__ new file mode 100644 index 000000000..e7ea51e50 --- /dev/null +++ b/snippets/python-mode/__slots__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __slots__ +# key: _slots +# group: Class attributes +# -- +__slots__ = ($1) +$0 diff --git a/snippets/python-mode/str b/snippets/python-mode/__str__ similarity index 55% rename from snippets/python-mode/str rename to snippets/python-mode/__str__ index b0572e330..f623df7ee 100644 --- a/snippets/python-mode/str +++ b/snippets/python-mode/__str__ @@ -1,7 +1,7 @@ # -*- mode: snippet -*- # name: __str__ -# key: str -# group: dunder methods +# key: _str +# group: Special methods # -- def __str__(self): - $0 \ No newline at end of file + return $0 diff --git a/snippets/python-mode/__sub__ b/snippets/python-mode/__sub__ new file mode 100644 index 000000000..d21d13c9c --- /dev/null +++ b/snippets/python-mode/__sub__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __sub__ +# key: _sub +# group: Special methods +# -- +def __sub__(self, other): + return $0 diff --git a/snippets/python-mode/__subclasscheck__ b/snippets/python-mode/__subclasscheck__ new file mode 100644 index 000000000..0f3a61d42 --- /dev/null +++ b/snippets/python-mode/__subclasscheck__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __subclasscheck__ +# key: _subclasscheck +# group: Special methods +# -- +def __subclasscheck__(self, instance): + return $0 diff --git a/snippets/python-mode/__truediv__ b/snippets/python-mode/__truediv__ new file mode 100644 index 000000000..00181b14d --- /dev/null +++ b/snippets/python-mode/__truediv__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __truediv__ +# key: _truediv +# group: Special methods +# -- +def __truediv__(self, other): + return $0 diff --git a/snippets/python-mode/__xor__ b/snippets/python-mode/__xor__ new file mode 100644 index 000000000..d84b99ff9 --- /dev/null +++ b/snippets/python-mode/__xor__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __xor__ +# key: _xor +# group: Special methods +# -- +def __xor__(self, other): + return $0 diff --git a/snippets/python-mode/all b/snippets/python-mode/all index b92c4dc39..3ef233e18 100644 --- a/snippets/python-mode/all +++ b/snippets/python-mode/all @@ -1,7 +1,8 @@ # -*- mode: snippet -*- # name: all # key: all +# expand-env: ((yas-indent-line 'fixed)) # -- __all__ = [ $0 -] \ No newline at end of file +] diff --git a/snippets/python-mode/arg_positional b/snippets/python-mode/arg_positional index b54fc4653..2e43a8a97 100644 --- a/snippets/python-mode/arg_positional +++ b/snippets/python-mode/arg_positional @@ -1,6 +1,6 @@ # -*- mode: snippet -*- # name: arg_positional -# key: arg +# key: posarg # group: argparser # -- -parser.add_argument('${1:varname}', $0) \ No newline at end of file +parser.add_argument('${1:varname}', $0) diff --git a/snippets/python-mode/ase b/snippets/python-mode/ase new file mode 100644 index 000000000..867554748 --- /dev/null +++ b/snippets/python-mode/ase @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: Assert Equal +# key: ase +# group: testing +# -- +self.assertEqual(${1:expected}, ${2:actual}) diff --git a/snippets/python-mode/asne b/snippets/python-mode/asne new file mode 100644 index 000000000..bccff3e30 --- /dev/null +++ b/snippets/python-mode/asne @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: Assert Not Equal +# key: asne +# group: testing +# -- +self.assertNotEqual(${1:expected}, ${2:actual}) diff --git a/snippets/python-mode/asr b/snippets/python-mode/asr new file mode 100644 index 000000000..21a10df71 --- /dev/null +++ b/snippets/python-mode/asr @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: Assert Raises +# key: asr +# group: testing +# -- +with self.assertRaises(${1:Exception}): + $0 diff --git a/snippets/python-mode/assert b/snippets/python-mode/assert index ec82efe19..dfd707f68 100644 --- a/snippets/python-mode/assert +++ b/snippets/python-mode/assert @@ -3,4 +3,4 @@ # key: ass # group: testing # -- -assert $0 \ No newline at end of file +assert $0 diff --git a/snippets/python-mode/assertEqual b/snippets/python-mode/assertEqual index 29282b905..64be83b55 100644 --- a/snippets/python-mode/assertEqual +++ b/snippets/python-mode/assertEqual @@ -3,4 +3,4 @@ # key: ae # group: testing # -- -self.assertEqual($1, $2) \ No newline at end of file +self.assertEqual($1, $2) diff --git a/snippets/python-mode/assertFalse b/snippets/python-mode/assertFalse index 41a9dcfbb..3c21b3668 100644 --- a/snippets/python-mode/assertFalse +++ b/snippets/python-mode/assertFalse @@ -3,4 +3,4 @@ # key: af # group: testing # -- -self.assertFalse($0) \ No newline at end of file +self.assertFalse($0) diff --git a/snippets/python-mode/assertIn b/snippets/python-mode/assertIn index 74e1ee7c0..5ef11cad7 100644 --- a/snippets/python-mode/assertIn +++ b/snippets/python-mode/assertIn @@ -3,4 +3,4 @@ # key: ai # group: testing # -- -self.assertIn(${1:member}, ${2:container}) \ No newline at end of file +self.assertIn(${1:member}, ${2:container}) diff --git a/snippets/python-mode/assertNotEqual b/snippets/python-mode/assertNotEqual index 68374076c..4cb759b2f 100644 --- a/snippets/python-mode/assertNotEqual +++ b/snippets/python-mode/assertNotEqual @@ -3,4 +3,4 @@ # key: ane # group: testing # -- -self.assertNotEqual($1, $2) \ No newline at end of file +self.assertNotEqual($1, $2) diff --git a/snippets/python-mode/assertNotIn b/snippets/python-mode/assertNotIn index 4780a7ec5..d59f88604 100644 --- a/snippets/python-mode/assertNotIn +++ b/snippets/python-mode/assertNotIn @@ -3,4 +3,4 @@ # key: an # group: testing # -- -self.assertNotIn(${1:member}, ${2:container}) \ No newline at end of file +self.assertNotIn(${1:member}, ${2:container}) diff --git a/snippets/python-mode/assertRaises b/snippets/python-mode/assertRaises index db125da73..489be0f50 100644 --- a/snippets/python-mode/assertRaises +++ b/snippets/python-mode/assertRaises @@ -3,4 +3,4 @@ # key: ar # group: testing # -- -self.assertRaises(${1:Exception}, ${2:fun}) \ No newline at end of file +self.assertRaises(${1:Exception}, ${2:fun}) diff --git a/snippets/python-mode/assertTrue b/snippets/python-mode/assertTrue index 1cc59ac6a..0d4b25edc 100644 --- a/snippets/python-mode/assertTrue +++ b/snippets/python-mode/assertTrue @@ -3,4 +3,4 @@ # key: at # group: testing # -- -self.assertTrue($0) \ No newline at end of file +self.assertTrue($0) diff --git a/snippets/python-mode/bang b/snippets/python-mode/bang index d70a4a2c4..5e873f8f7 100644 --- a/snippets/python-mode/bang +++ b/snippets/python-mode/bang @@ -3,4 +3,4 @@ # key: #! # contributor : @avelino # -- -#!/usr/bin/env python \ No newline at end of file +#!/usr/bin/env python diff --git a/snippets/python-mode/celery_pdb b/snippets/python-mode/celery_pdb index 6095b2d37..34c67858f 100644 --- a/snippets/python-mode/celery_pdb +++ b/snippets/python-mode/celery_pdb @@ -3,4 +3,4 @@ # key: cdb # group: debug # -- -from celery.contrib import rdb; rdb.set_trace() \ No newline at end of file +from celery.contrib import rdb; rdb.set_trace() diff --git a/snippets/python-mode/class_doxygen_doc b/snippets/python-mode/class_doxygen_doc index e8c6fa436..fcfa0646e 100644 --- a/snippets/python-mode/class_doxygen_doc +++ b/snippets/python-mode/class_doxygen_doc @@ -8,4 +8,4 @@ @brief ${1:class description} @details ${2:detailed description} -""" \ No newline at end of file +""" diff --git a/snippets/python-mode/classmethod b/snippets/python-mode/classmethod index 8e0e106e2..e3121f474 100644 --- a/snippets/python-mode/classmethod +++ b/snippets/python-mode/classmethod @@ -5,4 +5,4 @@ # -- @classmethod def ${1:meth}(cls, $2): - $0 \ No newline at end of file + $0 diff --git a/snippets/python-mode/dec b/snippets/python-mode/dec index b22c9e920..b1bee7d02 100644 --- a/snippets/python-mode/dec +++ b/snippets/python-mode/dec @@ -11,4 +11,4 @@ def ${1:decorator}(func): $4 return ret - return _$1 \ No newline at end of file + return _$1 diff --git a/snippets/python-mode/def b/snippets/python-mode/def new file mode 100644 index 000000000..a511a7a04 --- /dev/null +++ b/snippets/python-mode/def @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: def method(self, ...): +# key: def +# group: definitions +# -- +def ${1:methodname}(self, ${2:arg}): + ${3:pass} diff --git a/snippets/python-mode/deftest b/snippets/python-mode/deftest index 394553aec..ed3ec6c6e 100644 --- a/snippets/python-mode/deftest +++ b/snippets/python-mode/deftest @@ -4,4 +4,4 @@ # group: testing # -- def test_${1:long_name}(self): - $0 \ No newline at end of file + $0 diff --git a/snippets/python-mode/django_test_class b/snippets/python-mode/django_test_class index 386e3058c..1b63ad47b 100644 --- a/snippets/python-mode/django_test_class +++ b/snippets/python-mode/django_test_class @@ -1,7 +1,7 @@ # -*- mode: snippet; require-final-newline: nil -*- # name: django_test_class -# key: tcs +# key: dtcs # group: testing # -- class ${1:Model}Test(TestCase): - $0 \ No newline at end of file + $0 diff --git a/snippets/python-mode/doc b/snippets/python-mode/doc index 2929e7897..a7d924afe 100644 --- a/snippets/python-mode/doc +++ b/snippets/python-mode/doc @@ -3,4 +3,4 @@ # key: d # -- """$0 -""" \ No newline at end of file +""" diff --git a/snippets/python-mode/doctest b/snippets/python-mode/doctest index a5e4bb540..884352a7d 100644 --- a/snippets/python-mode/doctest +++ b/snippets/python-mode/doctest @@ -1,8 +1,8 @@ # -*- mode: snippet -*- # name: doctest -# key: doc +# key: doctest # group: testing # -- >>> ${1:function calls} ${2:desired output} -$0 \ No newline at end of file +$0 diff --git a/snippets/python-mode/env b/snippets/python-mode/env new file mode 100644 index 000000000..d4fb804ab --- /dev/null +++ b/snippets/python-mode/env @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: #!/usr/bin/env python +# key: env +# group: Header +# -- +#!/usr/bin/env python diff --git a/snippets/python-mode/for b/snippets/python-mode/for index 47ab3394a..1d8b6e9d3 100644 --- a/snippets/python-mode/for +++ b/snippets/python-mode/for @@ -4,4 +4,4 @@ # group : control structure # -- for ${var} in ${collection}: - $0 \ No newline at end of file + $0 diff --git a/snippets/python-mode/from b/snippets/python-mode/from index 3a4acfc57..65d5050f1 100644 --- a/snippets/python-mode/from +++ b/snippets/python-mode/from @@ -1,6 +1,7 @@ # -*- mode: snippet -*- -# name: from +# name: from MOD import SYM # key: from -# group : general +# group: Header # -- -from ${1:lib} import ${2:funs} \ No newline at end of file +from ${1:module} import ${2:symbol} +$0 diff --git a/snippets/python-mode/function_docstring b/snippets/python-mode/function_docstring index f372d265e..3e66c26fa 100644 --- a/snippets/python-mode/function_docstring +++ b/snippets/python-mode/function_docstring @@ -8,4 +8,4 @@ def ${1:name}($2): \"\"\"$3 ${2:$(python-args-to-docstring)} \"\"\" - $0 \ No newline at end of file + $0 diff --git a/snippets/python-mode/function_doxygen_doc b/snippets/python-mode/function_doxygen_doc index f42b99970..8b7ba64b2 100644 --- a/snippets/python-mode/function_doxygen_doc +++ b/snippets/python-mode/function_doxygen_doc @@ -12,4 +12,4 @@ @param ${3:param} @return ${4:return type} -""" \ No newline at end of file +""" diff --git a/snippets/python-mode/ife b/snippets/python-mode/ife index 4b8f613c3..e1b34f081 100644 --- a/snippets/python-mode/ife +++ b/snippets/python-mode/ife @@ -1,6 +1,7 @@ # -*- mode: snippet -*- # name: ife # key: ife +# expand-env: ((yas-indent-line 'fixed)) # group : control structure # -- if $1: diff --git a/snippets/python-mode/ifmain b/snippets/python-mode/ifmain index 9575798d6..cb74405c9 100644 --- a/snippets/python-mode/ifmain +++ b/snippets/python-mode/ifmain @@ -3,4 +3,4 @@ # key: ifm # -- if __name__ == '__main__': - ${1:main()} \ No newline at end of file + ${1:main()} diff --git a/snippets/python-mode/import b/snippets/python-mode/import index f34bc390d..1ff1ca8d0 100644 --- a/snippets/python-mode/import +++ b/snippets/python-mode/import @@ -4,4 +4,4 @@ # group : general # -- import ${1:lib}${2: as ${3:alias}} -$0 \ No newline at end of file +$0 diff --git a/snippets/python-mode/init_docstring b/snippets/python-mode/init_docstring index 51af8db4b..7256541a4 100644 --- a/snippets/python-mode/init_docstring +++ b/snippets/python-mode/init_docstring @@ -7,4 +7,4 @@ def __init__(self$1): \"\"\"$2 ${1:$(python-args-to-docstring)} \"\"\" - $0 \ No newline at end of file + $0 diff --git a/snippets/python-mode/interact b/snippets/python-mode/interact index 4b412c813..07bed2728 100644 --- a/snippets/python-mode/interact +++ b/snippets/python-mode/interact @@ -2,4 +2,4 @@ # name: interact # key: int # -- -import code; code.interact(local=locals()) \ No newline at end of file +import code; code.interact(local=locals()) diff --git a/snippets/python-mode/ipdb b/snippets/python-mode/ipdb index c8c30dca4..8f5b2adc6 100644 --- a/snippets/python-mode/ipdb +++ b/snippets/python-mode/ipdb @@ -3,4 +3,4 @@ # key: ipdb # group: debug # -- -import ipdb; ipdb.set_trace() \ No newline at end of file +import ipdb; ipdb.set_trace() diff --git a/snippets/python-mode/iter b/snippets/python-mode/iter index a4fed1383..181dcc985 100644 --- a/snippets/python-mode/iter +++ b/snippets/python-mode/iter @@ -1,7 +1,7 @@ # -*- mode: snippet -*- # name: __iter__ # key: iter -# group: dunder methods +# group: Special methods # -- def __iter__(self): - return ${1:iter($2)} \ No newline at end of file + return ${1:iter($2)} diff --git a/snippets/python-mode/lambda b/snippets/python-mode/lambda index 08b268bd3..c3e9879c7 100644 --- a/snippets/python-mode/lambda +++ b/snippets/python-mode/lambda @@ -2,4 +2,4 @@ # name: lambda # key: lam # -- -lambda ${1:x}: $0 \ No newline at end of file +lambda ${1:x}: $0 diff --git a/snippets/python-mode/list b/snippets/python-mode/list index 63cef24a8..8da114ef9 100644 --- a/snippets/python-mode/list +++ b/snippets/python-mode/list @@ -4,4 +4,4 @@ # group : definitions # -- [${1:el} for $1 in ${2:list}] -$0 \ No newline at end of file +$0 diff --git a/snippets/python-mode/logger_name b/snippets/python-mode/logger_name index 9759dd92f..1cdcc9eda 100644 --- a/snippets/python-mode/logger_name +++ b/snippets/python-mode/logger_name @@ -2,4 +2,4 @@ # name: logger_name # key: ln # -- -logger = logging.getLogger(${1:__name__}) \ No newline at end of file +logger = logging.getLogger(${1:__name__}) diff --git a/snippets/python-mode/main b/snippets/python-mode/main index 9f3c721ed..df753e3b1 100644 --- a/snippets/python-mode/main +++ b/snippets/python-mode/main @@ -3,4 +3,4 @@ # key: main # -- def main(): - $0 \ No newline at end of file + $0 diff --git a/snippets/python-mode/metaclass b/snippets/python-mode/metaclass deleted file mode 100644 index a9088f39c..000000000 --- a/snippets/python-mode/metaclass +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: metaclass -# key: mt -# group: object oriented -# -- -__metaclass__ = ${1:type} diff --git a/snippets/python-mode/method b/snippets/python-mode/method index 985ef0c9d..dd969d1de 100644 --- a/snippets/python-mode/method +++ b/snippets/python-mode/method @@ -4,4 +4,4 @@ # group: object oriented # -- def ${1:method}(self${2:, $3}): - $0 \ No newline at end of file + $0 diff --git a/snippets/python-mode/method_docstring b/snippets/python-mode/method_docstring index 8f5e78d01..affc63d4e 100644 --- a/snippets/python-mode/method_docstring +++ b/snippets/python-mode/method_docstring @@ -7,4 +7,4 @@ def ${1:name}(self$2): \"\"\"$3 ${2:$(python-args-to-docstring)} \"\"\" - $0 \ No newline at end of file + $0 diff --git a/snippets/python-mode/method_docstring_numpy b/snippets/python-mode/method_docstring_numpy index 75e27d1dc..8c2910a22 100644 --- a/snippets/python-mode/method_docstring_numpy +++ b/snippets/python-mode/method_docstring_numpy @@ -8,4 +8,4 @@ def ${1:name}(self$2): \"\"\"$3 ${2:$(python-args-to-docstring-numpy)} \"\"\" - $0 \ No newline at end of file + $0 diff --git a/snippets/python-mode/not_impl b/snippets/python-mode/not_impl index 515e35344..2d35c4581 100644 --- a/snippets/python-mode/not_impl +++ b/snippets/python-mode/not_impl @@ -2,4 +2,4 @@ # name: not_impl # key: not_impl # -- -raise NotImplementedError \ No newline at end of file +raise NotImplementedError diff --git a/snippets/python-mode/np b/snippets/python-mode/np index 9f6327c8e..aa6bff8fc 100644 --- a/snippets/python-mode/np +++ b/snippets/python-mode/np @@ -4,4 +4,4 @@ # group : general # -- import numpy as np -$0 \ No newline at end of file +$0 diff --git a/snippets/python-mode/parse_args b/snippets/python-mode/parse_args index aa6107010..89c8b971f 100644 --- a/snippets/python-mode/parse_args +++ b/snippets/python-mode/parse_args @@ -6,4 +6,4 @@ def parse_arguments(): parser = argparse.ArgumentParser(description='$1') $0 - return parser.parse_args() \ No newline at end of file + return parser.parse_args() diff --git a/snippets/python-mode/parser b/snippets/python-mode/parser index 29a04eaa4..c52e1791b 100644 --- a/snippets/python-mode/parser +++ b/snippets/python-mode/parser @@ -4,4 +4,4 @@ # group: argparser # -- parser = argparse.ArgumentParser(description='$1') -$0 \ No newline at end of file +$0 diff --git a/snippets/python-mode/pass b/snippets/python-mode/pass index 4734f7fb3..9e8818953 100644 --- a/snippets/python-mode/pass +++ b/snippets/python-mode/pass @@ -2,4 +2,4 @@ # name: pass # key: ps # -- -pass \ No newline at end of file +pass diff --git a/snippets/python-mode/pdb b/snippets/python-mode/pdb index 6067e3ca7..65d2db40e 100644 --- a/snippets/python-mode/pdb +++ b/snippets/python-mode/pdb @@ -3,4 +3,4 @@ # key: pdb # group: debug # -- -import pdb; pdb.set_trace() \ No newline at end of file +breakpoint() diff --git a/snippets/python-mode/print b/snippets/python-mode/print index cc1c797e4..2f908990f 100644 --- a/snippets/python-mode/print +++ b/snippets/python-mode/print @@ -2,4 +2,4 @@ # name: print # key: p # -- -print($0) \ No newline at end of file +print($0) diff --git a/snippets/python-mode/prop b/snippets/python-mode/prop index aede8793f..a2eb1bd3d 100644 --- a/snippets/python-mode/prop +++ b/snippets/python-mode/prop @@ -1,6 +1,7 @@ # -*- mode: snippet -*- # contributor: Mads D. Kristensen # name: prop +# expand-env: ((yas-indent-line 'fixed)) # -- def ${1:foo}(): doc = """${2:Doc string}""" @@ -15,4 +16,4 @@ def ${1:foo}(): return locals() $1 = property(**$1()) -$0 \ No newline at end of file +$0 diff --git a/snippets/python-mode/pudb b/snippets/python-mode/pudb index 2e5ba0970..fff108685 100644 --- a/snippets/python-mode/pudb +++ b/snippets/python-mode/pudb @@ -3,4 +3,4 @@ # key: pudb # group: debug # -- -import pudb; pudb.set_trace() \ No newline at end of file +import pudb; pudb.set_trace() diff --git a/snippets/python-mode/reg b/snippets/python-mode/reg index c4ebeacfa..567cb3aca 100644 --- a/snippets/python-mode/reg +++ b/snippets/python-mode/reg @@ -4,4 +4,4 @@ # group : general # -- ${1:regexp} = re.compile(r"${2:expr}") -$0 \ No newline at end of file +$0 diff --git a/snippets/python-mode/return b/snippets/python-mode/return index 641a308a3..43263d2d6 100644 --- a/snippets/python-mode/return +++ b/snippets/python-mode/return @@ -2,4 +2,4 @@ # name: return # key: r # -- -return $0 \ No newline at end of file +return $0 diff --git a/snippets/python-mode/self b/snippets/python-mode/self index 4461022be..9928c5a72 100644 --- a/snippets/python-mode/self +++ b/snippets/python-mode/self @@ -3,4 +3,4 @@ # key: . # group: object oriented # -- -self.$0 \ No newline at end of file +self.$0 diff --git a/snippets/python-mode/self_without_dot b/snippets/python-mode/self_without_dot index a1a05261e..81178b8fe 100644 --- a/snippets/python-mode/self_without_dot +++ b/snippets/python-mode/self_without_dot @@ -3,4 +3,4 @@ # key: s # group: object oriented # -- -self \ No newline at end of file +self diff --git a/snippets/python-mode/selfassign b/snippets/python-mode/selfassign index 95d7b2bb8..bc37fabf9 100644 --- a/snippets/python-mode/selfassign +++ b/snippets/python-mode/selfassign @@ -3,4 +3,4 @@ # key: sn # group: object oriented # -- -self.$1 = $1 \ No newline at end of file +self.$1 = $1 diff --git a/snippets/python-mode/setdef b/snippets/python-mode/setdef index 2398eb106..71b56d974 100644 --- a/snippets/python-mode/setdef +++ b/snippets/python-mode/setdef @@ -2,4 +2,4 @@ # name: setdef # key: setdef # -- -${1:var}.setdefault(${2:key}, []).append(${3:value}) \ No newline at end of file +${1:var}.setdefault(${2:key}, []).append(${3:value}) diff --git a/snippets/python-mode/size b/snippets/python-mode/size index 47a0f384c..a6ed6ab5e 100644 --- a/snippets/python-mode/size +++ b/snippets/python-mode/size @@ -2,4 +2,4 @@ # name: size # key: size # -- -sys.getsizeof($0) \ No newline at end of file +sys.getsizeof($0) diff --git a/snippets/python-mode/super b/snippets/python-mode/super deleted file mode 100644 index 23fba5d15..000000000 --- a/snippets/python-mode/super +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: super -# key: super -# group: object oriented -# -- -super(`(replace-regexp-in-string "\\([.]\\)[^.]+$" ", self)." (python-info-current-defun) nil nil 1)`($1) -$0 \ No newline at end of file diff --git a/snippets/python-mode/test_file b/snippets/python-mode/test_file index e4b531549..3fad172fc 100644 --- a/snippets/python-mode/test_file +++ b/snippets/python-mode/test_file @@ -9,4 +9,4 @@ ${1:from ${2:test_file} import *} $0 if __name__ == '__main__': - unittest.main() \ No newline at end of file + unittest.main() diff --git a/snippets/python-mode/try b/snippets/python-mode/try index 27cedde18..7030eccef 100644 --- a/snippets/python-mode/try +++ b/snippets/python-mode/try @@ -1,8 +1,9 @@ # -*- mode: snippet -*- # name: try # key: try +# expand-env: ((yas-indent-line 'fixed)) # -- try: $0 except ${1:Exception}: - $2 \ No newline at end of file + $2 diff --git a/snippets/python-mode/tryelse b/snippets/python-mode/tryelse index 999d7403d..30537d62c 100644 --- a/snippets/python-mode/tryelse +++ b/snippets/python-mode/tryelse @@ -1,10 +1,11 @@ # -*- mode: snippet -*- # name: tryelse -# key: try +# key: tryelse +# expand-env: ((yas-indent-line 'fixed)) # -- try: $0 except $1: $2 else: - $3 \ No newline at end of file + $3 diff --git a/snippets/python-mode/unicode b/snippets/python-mode/unicode deleted file mode 100644 index 52d6b8d2c..000000000 --- a/snippets/python-mode/unicode +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: __unicode__ -# key: un -# group: dunder methods -# -- -def __unicode__(self): - $0 \ No newline at end of file diff --git a/snippets/python-mode/unicode_literals b/snippets/python-mode/unicode_literals deleted file mode 100644 index 08e2eb55a..000000000 --- a/snippets/python-mode/unicode_literals +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: unicode_literals -# key: fu -# group: future -# -- -from __future__ import unicode_literals diff --git a/snippets/python-mode/while b/snippets/python-mode/while index 7b3539c69..a482fac06 100644 --- a/snippets/python-mode/while +++ b/snippets/python-mode/while @@ -4,4 +4,4 @@ # group: control structure # -- while ${1:True}: - $0 \ No newline at end of file + $0 diff --git a/snippets/python-mode/with b/snippets/python-mode/with index 7fcbd3820..e17133cc6 100644 --- a/snippets/python-mode/with +++ b/snippets/python-mode/with @@ -4,4 +4,4 @@ # group : control structure # -- with ${1:expr}${2: as ${3:alias}}: - $0 \ No newline at end of file + $0 diff --git a/snippets/python-mode/with_statement b/snippets/python-mode/with_statement deleted file mode 100644 index 1be36928d..000000000 --- a/snippets/python-mode/with_statement +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: with_statement -# key: fw -# group: future -# -- -from __future__ import with_statement \ No newline at end of file diff --git a/yasnippet-snippets.el b/yasnippet-snippets.el index fbb474c4d..3378be8f0 100644 --- a/yasnippet-snippets.el +++ b/yasnippet-snippets.el @@ -62,10 +62,6 @@ customizable variable used for a snippet expansion. See Info node `(elisp)Customization Types'." :group 'yasnippet) -(defun yasnippet-snippets--fixed-indent () - "Set `yas-indent-line' to `fixed'." - (set (make-local-variable 'yas-indent-line) 'fixed)) - (defun yasnippet-snippets--no-indent () "Set `yas-indent-line' to nil." (set (make-local-variable 'yas-indent-line) nil)) From cdad57f368121cdaaaa33e4455ce81d62afedbdc Mon Sep 17 00:00:00 2001 From: Pushpal Sidhu Date: Fri, 5 Jan 2024 03:37:19 -0800 Subject: [PATCH 42/86] snippets: mass add tree-sitter modes to .yas-parents (#481) Created a script to dumbly add snippets for tree sitter modes that weren't already present. The script looks at https//github.com/tree-sitter/tree-sitter- to see if a mode exists and then creates a tree sitter mode. Untested other than the c/c++ Signed-off-by: Pushpal Sidhu --- snippets/c++-ts-mode/.yas-parents | 1 + snippets/c-ts-mode/.yas-parents | 1 + snippets/css-ts-mode/.yas-parents | 1 + snippets/haskell-ts-mode/.yas-parents | 1 + snippets/html-ts-mode/.yas-parents | 1 + snippets/java-ts-mode/.yas-parents | 1 + snippets/julia-ts-mode/.yas-parents | 1 + snippets/php-ts-mode/.yas-parents | 1 + snippets/ruby-ts-mode/.yas-parents | 1 + snippets/scala-ts-mode/.yas-parents | 1 + snippets/sh-ts-mode/.yas-parents | 1 + snippets/swift-ts-mode/.yas-parents | 1 + snippets/typescript-ts-mode/.yas-parents | 1 + 13 files changed, 13 insertions(+) create mode 100644 snippets/c++-ts-mode/.yas-parents create mode 100644 snippets/c-ts-mode/.yas-parents create mode 100644 snippets/css-ts-mode/.yas-parents create mode 100644 snippets/haskell-ts-mode/.yas-parents create mode 100644 snippets/html-ts-mode/.yas-parents create mode 100644 snippets/java-ts-mode/.yas-parents create mode 100644 snippets/julia-ts-mode/.yas-parents create mode 100644 snippets/php-ts-mode/.yas-parents create mode 100644 snippets/ruby-ts-mode/.yas-parents create mode 100644 snippets/scala-ts-mode/.yas-parents create mode 100644 snippets/sh-ts-mode/.yas-parents create mode 100644 snippets/swift-ts-mode/.yas-parents create mode 100644 snippets/typescript-ts-mode/.yas-parents diff --git a/snippets/c++-ts-mode/.yas-parents b/snippets/c++-ts-mode/.yas-parents new file mode 100644 index 000000000..7a0ada10f --- /dev/null +++ b/snippets/c++-ts-mode/.yas-parents @@ -0,0 +1 @@ +c++-mode diff --git a/snippets/c-ts-mode/.yas-parents b/snippets/c-ts-mode/.yas-parents new file mode 100644 index 000000000..94b511999 --- /dev/null +++ b/snippets/c-ts-mode/.yas-parents @@ -0,0 +1 @@ +c-mode diff --git a/snippets/css-ts-mode/.yas-parents b/snippets/css-ts-mode/.yas-parents new file mode 100644 index 000000000..c9a0a6b32 --- /dev/null +++ b/snippets/css-ts-mode/.yas-parents @@ -0,0 +1 @@ +css-mode diff --git a/snippets/haskell-ts-mode/.yas-parents b/snippets/haskell-ts-mode/.yas-parents new file mode 100644 index 000000000..4b21da0d4 --- /dev/null +++ b/snippets/haskell-ts-mode/.yas-parents @@ -0,0 +1 @@ +haskell-mode diff --git a/snippets/html-ts-mode/.yas-parents b/snippets/html-ts-mode/.yas-parents new file mode 100644 index 000000000..8a1138368 --- /dev/null +++ b/snippets/html-ts-mode/.yas-parents @@ -0,0 +1 @@ +html-mode diff --git a/snippets/java-ts-mode/.yas-parents b/snippets/java-ts-mode/.yas-parents new file mode 100644 index 000000000..f524c9133 --- /dev/null +++ b/snippets/java-ts-mode/.yas-parents @@ -0,0 +1 @@ +java-mode diff --git a/snippets/julia-ts-mode/.yas-parents b/snippets/julia-ts-mode/.yas-parents new file mode 100644 index 000000000..579faf95a --- /dev/null +++ b/snippets/julia-ts-mode/.yas-parents @@ -0,0 +1 @@ +julia-mode diff --git a/snippets/php-ts-mode/.yas-parents b/snippets/php-ts-mode/.yas-parents new file mode 100644 index 000000000..200af310a --- /dev/null +++ b/snippets/php-ts-mode/.yas-parents @@ -0,0 +1 @@ +php-mode diff --git a/snippets/ruby-ts-mode/.yas-parents b/snippets/ruby-ts-mode/.yas-parents new file mode 100644 index 000000000..1bd2276bd --- /dev/null +++ b/snippets/ruby-ts-mode/.yas-parents @@ -0,0 +1 @@ +ruby-mode diff --git a/snippets/scala-ts-mode/.yas-parents b/snippets/scala-ts-mode/.yas-parents new file mode 100644 index 000000000..903589100 --- /dev/null +++ b/snippets/scala-ts-mode/.yas-parents @@ -0,0 +1 @@ +scala-mode diff --git a/snippets/sh-ts-mode/.yas-parents b/snippets/sh-ts-mode/.yas-parents new file mode 100644 index 000000000..04d079bb3 --- /dev/null +++ b/snippets/sh-ts-mode/.yas-parents @@ -0,0 +1 @@ +sh-mode diff --git a/snippets/swift-ts-mode/.yas-parents b/snippets/swift-ts-mode/.yas-parents new file mode 100644 index 000000000..9da7f70cc --- /dev/null +++ b/snippets/swift-ts-mode/.yas-parents @@ -0,0 +1 @@ +swift-mode diff --git a/snippets/typescript-ts-mode/.yas-parents b/snippets/typescript-ts-mode/.yas-parents new file mode 100644 index 000000000..a540072f1 --- /dev/null +++ b/snippets/typescript-ts-mode/.yas-parents @@ -0,0 +1 @@ +typescript-mode From 9799ec9ffa45e1ebef895e4573abc0d188ecee0e Mon Sep 17 00:00:00 2001 From: Maverick Bozo Date: Fri, 5 Jan 2024 18:38:15 +0700 Subject: [PATCH 43/86] clojure-mode snippets update (#479) there are lots of updates to mpenet's clojure-mode snippets since the last time they were copied to yasnippet-snippets. This commit brings the updated version of those snippets. --- snippets/clojure-mode/bench | 1 - snippets/clojure-mode/com | 7 +++++++ snippets/clojure-mode/cond | 7 +++++++ snippets/clojure-mode/condp | 5 +++++ snippets/clojure-mode/def | 3 +-- snippets/clojure-mode/defm | 3 +-- snippets/clojure-mode/defn | 3 +-- snippets/clojure-mode/defr | 4 +--- snippets/clojure-mode/deft | 2 -- snippets/clojure-mode/doseq | 1 - snippets/clojure-mode/fdef | 6 ++++++ snippets/clojure-mode/fn | 3 +-- snippets/clojure-mode/for | 3 +-- snippets/clojure-mode/if | 3 +-- snippets/clojure-mode/ifl | 1 - snippets/clojure-mode/import | 2 -- snippets/clojure-mode/is | 3 +-- snippets/clojure-mode/let | 3 +-- snippets/clojure-mode/letfn | 8 ++++++++ snippets/clojure-mode/main | 5 +++++ snippets/clojure-mode/map | 1 - snippets/clojure-mode/map.lambda | 1 - snippets/clojure-mode/mdoc | 1 - snippets/clojure-mode/ns | 9 ++++----- snippets/clojure-mode/opts | 1 - snippets/clojure-mode/pr | 1 - snippets/clojure-mode/print | 1 - snippets/clojure-mode/reduce | 3 +-- snippets/clojure-mode/require | 2 -- snippets/clojure-mode/sdef | 4 ++++ snippets/clojure-mode/skeys | 4 ++++ snippets/clojure-mode/test | 3 +-- snippets/clojure-mode/testing | 4 ++++ snippets/clojure-mode/thread-first | 4 ++++ snippets/clojure-mode/thread-last | 4 ++++ snippets/clojure-mode/try | 1 - snippets/clojure-mode/use | 2 -- snippets/clojure-mode/when | 3 +-- snippets/clojure-mode/whenl | 1 - 39 files changed, 74 insertions(+), 49 deletions(-) create mode 100644 snippets/clojure-mode/com create mode 100644 snippets/clojure-mode/cond create mode 100644 snippets/clojure-mode/condp create mode 100644 snippets/clojure-mode/fdef create mode 100644 snippets/clojure-mode/letfn create mode 100644 snippets/clojure-mode/main create mode 100644 snippets/clojure-mode/sdef create mode 100644 snippets/clojure-mode/skeys create mode 100644 snippets/clojure-mode/testing create mode 100644 snippets/clojure-mode/thread-first create mode 100644 snippets/clojure-mode/thread-last diff --git a/snippets/clojure-mode/bench b/snippets/clojure-mode/bench index 360d1dbee..fd4e15187 100644 --- a/snippets/clojure-mode/bench +++ b/snippets/clojure-mode/bench @@ -1,4 +1,3 @@ -# -*- mode: snippet -*- # name: bench # key: bench # -- diff --git a/snippets/clojure-mode/com b/snippets/clojure-mode/com new file mode 100644 index 000000000..3e69e42a8 --- /dev/null +++ b/snippets/clojure-mode/com @@ -0,0 +1,7 @@ +# name: com +# key: com +# -- +(defrecord $1 [$2] + component/Lifecycle + (start [this] $3) + (stop [this] $4)) \ No newline at end of file diff --git a/snippets/clojure-mode/cond b/snippets/clojure-mode/cond new file mode 100644 index 000000000..5917c1279 --- /dev/null +++ b/snippets/clojure-mode/cond @@ -0,0 +1,7 @@ +# name: cond +# key: cond +# -- +(cond + ($1) $2 + ($3) $4 + :else $5) \ No newline at end of file diff --git a/snippets/clojure-mode/condp b/snippets/clojure-mode/condp new file mode 100644 index 000000000..1718f6ffb --- /dev/null +++ b/snippets/clojure-mode/condp @@ -0,0 +1,5 @@ +#name: condp +#key: condp +# -- +(condp ${1:pred} ${2:expr} + $0) \ No newline at end of file diff --git a/snippets/clojure-mode/def b/snippets/clojure-mode/def index 4c586430e..7ac6697f0 100644 --- a/snippets/clojure-mode/def +++ b/snippets/clojure-mode/def @@ -1,5 +1,4 @@ -# -*- mode: snippet -*- # name: def # key: def # -- -(def $0) \ No newline at end of file +(def $0) diff --git a/snippets/clojure-mode/defm b/snippets/clojure-mode/defm index e40e3132e..1f6bb7c6c 100644 --- a/snippets/clojure-mode/defm +++ b/snippets/clojure-mode/defm @@ -1,8 +1,7 @@ -# -*- mode: snippet -*- # name: defmacro # key: defm # -- (defmacro $1 "$2"$> [$3]$> - $0)$> \ No newline at end of file + $0)$> diff --git a/snippets/clojure-mode/defn b/snippets/clojure-mode/defn index b3e79a0b6..f68b48e78 100644 --- a/snippets/clojure-mode/defn +++ b/snippets/clojure-mode/defn @@ -1,8 +1,7 @@ -# -*- mode: snippet -*- # name: defn # key: defn # -- (defn $1 "$2"$> [$3]$> - $0)$> \ No newline at end of file + $0)$> diff --git a/snippets/clojure-mode/defr b/snippets/clojure-mode/defr index 87bf11caf..26b198ead 100644 --- a/snippets/clojure-mode/defr +++ b/snippets/clojure-mode/defr @@ -1,9 +1,7 @@ -# -*- mode: snippet -*- # name: defrecord # key: defr # -- (defrecord - ^{"$1"}$> $2$> [$3]$> - $0)$> \ No newline at end of file + $0)$> diff --git a/snippets/clojure-mode/deft b/snippets/clojure-mode/deft index ac912b51a..802d92b35 100644 --- a/snippets/clojure-mode/deft +++ b/snippets/clojure-mode/deft @@ -1,9 +1,7 @@ -# -*- mode: snippet -*- # name: deftype # key: deft # -- (deftype - ^{"$1"}$> $2$> [$3]$> $0)$> \ No newline at end of file diff --git a/snippets/clojure-mode/doseq b/snippets/clojure-mode/doseq index 342763c99..9a7d3aa91 100644 --- a/snippets/clojure-mode/doseq +++ b/snippets/clojure-mode/doseq @@ -1,4 +1,3 @@ -# -*- mode: snippet -*- # name: doseq # key: doseq # -- diff --git a/snippets/clojure-mode/fdef b/snippets/clojure-mode/fdef new file mode 100644 index 000000000..7a0fd14bd --- /dev/null +++ b/snippets/clojure-mode/fdef @@ -0,0 +1,6 @@ +# name: fdef +# key: fdef +# -- +(s/fdef $1$> + :args (s/cat $2)$> + :ret $0)$> \ No newline at end of file diff --git a/snippets/clojure-mode/fn b/snippets/clojure-mode/fn index 724a7507f..e949ed801 100644 --- a/snippets/clojure-mode/fn +++ b/snippets/clojure-mode/fn @@ -1,6 +1,5 @@ -# -*- mode: snippet -*- # name: fn # key: fn # -- (fn [$1] - $0)$> \ No newline at end of file + $0)$> diff --git a/snippets/clojure-mode/for b/snippets/clojure-mode/for index 6f26d8a58..6ff8781ff 100644 --- a/snippets/clojure-mode/for +++ b/snippets/clojure-mode/for @@ -1,6 +1,5 @@ -# -*- mode: snippet -*- # name: for # key: for # -- (for [$1 $2] - $3)$> \ No newline at end of file + $3)$> diff --git a/snippets/clojure-mode/if b/snippets/clojure-mode/if index 717076434..e3a0bd3fa 100644 --- a/snippets/clojure-mode/if +++ b/snippets/clojure-mode/if @@ -1,4 +1,3 @@ -# -*- mode: snippet -*- # -*- coding: utf-8 -*- # name: if # key: if @@ -6,4 +5,4 @@ (if $1 $2$> $3)$> -$0 \ No newline at end of file +$0 diff --git a/snippets/clojure-mode/ifl b/snippets/clojure-mode/ifl index ccf5f2655..a8df766af 100644 --- a/snippets/clojure-mode/ifl +++ b/snippets/clojure-mode/ifl @@ -1,4 +1,3 @@ -# -*- mode: snippet -*- # -*- coding: utf-8 -*- # name: ifl # key: ifl diff --git a/snippets/clojure-mode/import b/snippets/clojure-mode/import index d261289b1..a7929d1e0 100644 --- a/snippets/clojure-mode/import +++ b/snippets/clojure-mode/import @@ -1,6 +1,4 @@ -# -*- mode: snippet -*- # name: import # key: import -# expand-env: ((yas-triggers-in-field nil)) # -- (:import ($1))$> \ No newline at end of file diff --git a/snippets/clojure-mode/is b/snippets/clojure-mode/is index 6f6c84ec8..6a8e54a31 100644 --- a/snippets/clojure-mode/is +++ b/snippets/clojure-mode/is @@ -1,6 +1,5 @@ -# -*- mode: snippet -*- # -*- coding: utf-8 -*- # name: is # key: is # -- -(is (= $1 $2)) \ No newline at end of file +(is (= $1 $2)) diff --git a/snippets/clojure-mode/let b/snippets/clojure-mode/let index ab467f93a..9d83ae2fd 100644 --- a/snippets/clojure-mode/let +++ b/snippets/clojure-mode/let @@ -1,8 +1,7 @@ -# -*- mode: snippet -*- # -*- coding: utf-8 -*- # name: let # key: let # -- (let [$1 $2]$> $3)$> -$0 \ No newline at end of file +$0 diff --git a/snippets/clojure-mode/letfn b/snippets/clojure-mode/letfn new file mode 100644 index 000000000..159e59fdf --- /dev/null +++ b/snippets/clojure-mode/letfn @@ -0,0 +1,8 @@ +# -*- coding: utf-8 -*- +# name: letfn +# key: letfn +# -- +(letfn [($1 [$2] + $3)]$> + $4)$> +$0 \ No newline at end of file diff --git a/snippets/clojure-mode/main b/snippets/clojure-mode/main new file mode 100644 index 000000000..59e9ea38a --- /dev/null +++ b/snippets/clojure-mode/main @@ -0,0 +1,5 @@ +# name: main +# key: main +# -- +(defn -main [& args]$> + $1)$> \ No newline at end of file diff --git a/snippets/clojure-mode/map b/snippets/clojure-mode/map index 306bcd8b6..a699c4a9c 100644 --- a/snippets/clojure-mode/map +++ b/snippets/clojure-mode/map @@ -1,4 +1,3 @@ -# -*- mode: snippet -*- # -*- coding: utf-8 -*- # name: map # key: map diff --git a/snippets/clojure-mode/map.lambda b/snippets/clojure-mode/map.lambda index 13a513b4b..9771706ef 100644 --- a/snippets/clojure-mode/map.lambda +++ b/snippets/clojure-mode/map.lambda @@ -1,4 +1,3 @@ -# -*- mode: snippet -*- # -*- coding: utf-8 -*- # name: map lambda # key: map diff --git a/snippets/clojure-mode/mdoc b/snippets/clojure-mode/mdoc index ac88e0049..09172286a 100644 --- a/snippets/clojure-mode/mdoc +++ b/snippets/clojure-mode/mdoc @@ -1,4 +1,3 @@ -# -*- mode: snippet -*- # -*- coding: utf-8 -*- # name: mdoc # key: mdoc diff --git a/snippets/clojure-mode/ns b/snippets/clojure-mode/ns index b87dd7445..651221ea7 100644 --- a/snippets/clojure-mode/ns +++ b/snippets/clojure-mode/ns @@ -1,4 +1,3 @@ -# -*- mode: snippet -*- # -*- coding: utf-8 -*- # name: ns # key: ns @@ -11,13 +10,13 @@ nil)))) (let* ((p (buffer-file-name)) (p2 (cl-first - (cl-remove-if-not #'(lambda (x) x) + (cl-remove-if-not (lambda (x) x) (mapcar - #'(lambda (pfx) + (lambda (pfx) (try-src-prefix p pfx)) '("/src/cljs/" "/src/clj/" "/src/" "/test/"))))) (p3 (file-name-sans-extension p2)) - (p4 (mapconcat #'(lambda (x) x) + (p4 (mapconcat (lambda (x) x) (split-string p3 "/") "."))) - (replace-regexp-in-string "_" "-" p4)))`) \ No newline at end of file + (replace-regexp-in-string "_" "-" p4)))`) diff --git a/snippets/clojure-mode/opts b/snippets/clojure-mode/opts index bc0bb5c60..4e04fa055 100644 --- a/snippets/clojure-mode/opts +++ b/snippets/clojure-mode/opts @@ -1,4 +1,3 @@ -# -*- mode: snippet -*- # key: opts # name: opts # -- diff --git a/snippets/clojure-mode/pr b/snippets/clojure-mode/pr index 5ce6025a8..6d98a41f9 100644 --- a/snippets/clojure-mode/pr +++ b/snippets/clojure-mode/pr @@ -1,4 +1,3 @@ -# -*- mode: snippet -*- # -*- coding: utf-8 -*- # name: pr # key: pr diff --git a/snippets/clojure-mode/print b/snippets/clojure-mode/print index c60355626..a23c1c882 100644 --- a/snippets/clojure-mode/print +++ b/snippets/clojure-mode/print @@ -1,4 +1,3 @@ -# -*- mode: snippet -*- # -*- coding: utf-8 -*- # name: print # key: print diff --git a/snippets/clojure-mode/reduce b/snippets/clojure-mode/reduce index 52cbb239a..68f737578 100644 --- a/snippets/clojure-mode/reduce +++ b/snippets/clojure-mode/reduce @@ -1,6 +1,5 @@ -# -*- mode: snippet -*- # -*- coding: utf-8 -*- # name: reduce # key: reduce # -- -(reduce ${1:(fn [p n] $0)} $2) \ No newline at end of file +(reduce ${1:(fn [p n] $0)} $2) diff --git a/snippets/clojure-mode/require b/snippets/clojure-mode/require index 8c1299372..29c584ecd 100644 --- a/snippets/clojure-mode/require +++ b/snippets/clojure-mode/require @@ -1,6 +1,4 @@ -# -*- mode: snippet -*- # name: require # key: require -# expand-env: ((yas-triggers-in-field nil)) # -- (:require [$1 :as $2])$> \ No newline at end of file diff --git a/snippets/clojure-mode/sdef b/snippets/clojure-mode/sdef new file mode 100644 index 000000000..270cab2bb --- /dev/null +++ b/snippets/clojure-mode/sdef @@ -0,0 +1,4 @@ +# name: sdef +# key: sdef +# -- +(s/def ::$0 $1) \ No newline at end of file diff --git a/snippets/clojure-mode/skeys b/snippets/clojure-mode/skeys new file mode 100644 index 000000000..192cc9f91 --- /dev/null +++ b/snippets/clojure-mode/skeys @@ -0,0 +1,4 @@ +# name: skeys +# key: skeys +# -- +(s/keys :$0 $1) \ No newline at end of file diff --git a/snippets/clojure-mode/test b/snippets/clojure-mode/test index 970a04c7a..0d7751db3 100644 --- a/snippets/clojure-mode/test +++ b/snippets/clojure-mode/test @@ -1,7 +1,6 @@ -# -*- mode: snippet -*- # name: test # key: test # -- (deftest $1 (is (= $2))$> - $0)$> \ No newline at end of file + $0)$> diff --git a/snippets/clojure-mode/testing b/snippets/clojure-mode/testing new file mode 100644 index 000000000..6d6f5e821 --- /dev/null +++ b/snippets/clojure-mode/testing @@ -0,0 +1,4 @@ +# name: testing +# key: testing +# -- +(testing "$1")$> diff --git a/snippets/clojure-mode/thread-first b/snippets/clojure-mode/thread-first new file mode 100644 index 000000000..84d322941 --- /dev/null +++ b/snippets/clojure-mode/thread-first @@ -0,0 +1,4 @@ +# name: -> +# key: -> +# -- +(-> $1) \ No newline at end of file diff --git a/snippets/clojure-mode/thread-last b/snippets/clojure-mode/thread-last new file mode 100644 index 000000000..41f5db3c6 --- /dev/null +++ b/snippets/clojure-mode/thread-last @@ -0,0 +1,4 @@ +# name: ->> +# key: ->> +# -- +(->> $1) \ No newline at end of file diff --git a/snippets/clojure-mode/try b/snippets/clojure-mode/try index 034f4ffd1..397cc6c26 100644 --- a/snippets/clojure-mode/try +++ b/snippets/clojure-mode/try @@ -1,4 +1,3 @@ -# -*- mode: snippet -*- # name: try # key: try # -- diff --git a/snippets/clojure-mode/use b/snippets/clojure-mode/use index 9f87c8381..67a7be186 100644 --- a/snippets/clojure-mode/use +++ b/snippets/clojure-mode/use @@ -1,6 +1,4 @@ -# -*- mode: snippet -*- # name: use # key: use -# expand-env: ((yas-triggers-in-field nil)) # -- (:use [$1 :refer [$2]])$> \ No newline at end of file diff --git a/snippets/clojure-mode/when b/snippets/clojure-mode/when index 5e8bf3b7d..e17bb6b0f 100644 --- a/snippets/clojure-mode/when +++ b/snippets/clojure-mode/when @@ -1,8 +1,7 @@ -# -*- mode: snippet -*- # -*- coding: utf-8 -*- # name: when # key: when # -- (when $1 $2)$> -$0$> \ No newline at end of file +$0$> diff --git a/snippets/clojure-mode/whenl b/snippets/clojure-mode/whenl index db1280727..929019e58 100644 --- a/snippets/clojure-mode/whenl +++ b/snippets/clojure-mode/whenl @@ -1,4 +1,3 @@ -# -*- mode: snippet -*- # -*- coding: utf-8 -*- # name: whenl # key: whenl From ef4f51240b53ffe6fecd49aef11ba27e26325300 Mon Sep 17 00:00:00 2001 From: Rajita Chandak Date: Fri, 5 Jan 2024 06:39:42 -0500 Subject: [PATCH 44/86] added theorem, lemma and corollary snippets (#474) --- snippets/latex-mode/corollary | 8 ++++++++ snippets/latex-mode/lemma | 8 ++++++++ snippets/latex-mode/theorem | 8 ++++++++ 3 files changed, 24 insertions(+) create mode 100644 snippets/latex-mode/corollary create mode 100644 snippets/latex-mode/lemma create mode 100644 snippets/latex-mode/theorem diff --git a/snippets/latex-mode/corollary b/snippets/latex-mode/corollary new file mode 100644 index 000000000..fa9e1eff4 --- /dev/null +++ b/snippets/latex-mode/corollary @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: corollary +# key: corr +# -- +\begin{cor}[${2:title}] + \label{cor:${1:label}} + $0 +\end{cor} diff --git a/snippets/latex-mode/lemma b/snippets/latex-mode/lemma new file mode 100644 index 000000000..fbbe94d39 --- /dev/null +++ b/snippets/latex-mode/lemma @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: lemma +# key: lem +# -- +\begin{lem}[${2:title}] + \label{lem:${1:label}} + $0 +\end{lem} diff --git a/snippets/latex-mode/theorem b/snippets/latex-mode/theorem new file mode 100644 index 000000000..cb3f90d31 --- /dev/null +++ b/snippets/latex-mode/theorem @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: theorem +# key: thm +# -- +\begin{thm}[${2:title}] + \label{thm:${1:label}} + $0 +\end{thm} From 1eacad1d4e400624bcae025c9aef17f830934a6e Mon Sep 17 00:00:00 2001 From: knottedbrain Date: Fri, 5 Jan 2024 11:39:52 +0000 Subject: [PATCH 45/86] Create a snippet to create desktop files (#476) --- snippets/conf-desktop-mode/desk | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 snippets/conf-desktop-mode/desk diff --git a/snippets/conf-desktop-mode/desk b/snippets/conf-desktop-mode/desk new file mode 100644 index 000000000..44041eae2 --- /dev/null +++ b/snippets/conf-desktop-mode/desk @@ -0,0 +1,16 @@ +# -*- mode: snippet -*- +# name: current-date +# key: desk +# contributor : Yilkal Argaw +# -- +[Desktop Entry] +Encoding=${1:UTF-8} +Version=${2:1.0} +Type=${3:Application} +NoDisplay=${4:false} +Terminal=${5:false} +Exec=${} +Name=${} +Icon=${} +Comment=${} +Categories=${} From a98c5deb27986c847a9f4c556f0b29be14963c92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20Soul=C3=A9?= Date: Fri, 5 Jan 2024 12:40:05 +0100 Subject: [PATCH 46/86] "fixme" snippet also excludes bash-ts-mode (#478) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime Soulé --- snippets/prog-mode/fixme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/prog-mode/fixme b/snippets/prog-mode/fixme index df81c1d36..5740531d4 100644 --- a/snippets/prog-mode/fixme +++ b/snippets/prog-mode/fixme @@ -1,6 +1,6 @@ # -*- mode: snippet -*- # name: fixme # key: fi -# condition: (not (eq major-mode 'sh-mode)) +# condition: (not (member major-mode '(sh-mode bash-ts-mode))) # -- `comment-start`FIXME: $0`comment-end` \ No newline at end of file From 98571357aadb432d83ee167696c93244e386afe6 Mon Sep 17 00:00:00 2001 From: "lin.sun" Date: Fri, 5 Jan 2024 03:40:38 -0800 Subject: [PATCH 47/86] *yasnippet-snippets.el: avoid duplicate loading the snippets (#468) --- yasnippet-snippets.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/yasnippet-snippets.el b/yasnippet-snippets.el index 3378be8f0..d50b895b3 100644 --- a/yasnippet-snippets.el +++ b/yasnippet-snippets.el @@ -49,8 +49,9 @@ ;; NOTE: we add the symbol `yasnippet-snippets-dir' rather than its ;; value, so that yasnippet will automatically find the directory ;; after this package is updated (i.e., moves directory). - (add-to-list 'yas-snippet-dirs 'yasnippet-snippets-dir t) - (yas--load-snippet-dirs)) + (unless (member 'yasnippet-snippets-dir yas-snippet-dirs) + (add-to-list 'yas-snippet-dirs 'yasnippet-snippets-dir t) + (yas--load-snippet-dirs))) (defgroup yasnippet-snippets nil "Options for yasnippet setups. From b00a7c9f9a17ccdfddcd701af60cf02bf4893cb9 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Fri, 5 Jan 2024 12:41:03 +0100 Subject: [PATCH 48/86] Implement missing python special methods. (#467) --- snippets/python-mode/__aenter__ | 8 ++++++++ snippets/python-mode/__aexit__ | 7 +++++++ snippets/python-mode/__aiter__ | 7 +++++++ snippets/python-mode/__anext__ | 7 +++++++ snippets/python-mode/__await__ | 7 +++++++ snippets/python-mode/__bytes__ | 7 +++++++ snippets/python-mode/__ceil__ | 7 +++++++ snippets/python-mode/__class_getitem__ | 7 +++++++ snippets/python-mode/__dir__ | 7 +++++++ snippets/python-mode/__floor__ | 7 +++++++ snippets/python-mode/__format__ | 7 +++++++ snippets/python-mode/__imatmul__ | 7 +++++++ snippets/python-mode/__init_subclass__ | 8 ++++++++ snippets/python-mode/__length_hint__ | 7 +++++++ snippets/python-mode/__matmul__ | 7 +++++++ snippets/python-mode/__missing__ | 7 +++++++ snippets/python-mode/__prepare__ | 7 +++++++ snippets/python-mode/__rmatmul__ | 7 +++++++ snippets/python-mode/__round__ | 7 +++++++ snippets/python-mode/__set_name__ | 7 +++++++ snippets/python-mode/__trunc__ | 7 +++++++ 21 files changed, 149 insertions(+) create mode 100644 snippets/python-mode/__aenter__ create mode 100644 snippets/python-mode/__aexit__ create mode 100644 snippets/python-mode/__aiter__ create mode 100644 snippets/python-mode/__anext__ create mode 100644 snippets/python-mode/__await__ create mode 100644 snippets/python-mode/__bytes__ create mode 100644 snippets/python-mode/__ceil__ create mode 100644 snippets/python-mode/__class_getitem__ create mode 100644 snippets/python-mode/__dir__ create mode 100644 snippets/python-mode/__floor__ create mode 100644 snippets/python-mode/__format__ create mode 100644 snippets/python-mode/__imatmul__ create mode 100644 snippets/python-mode/__init_subclass__ create mode 100644 snippets/python-mode/__length_hint__ create mode 100644 snippets/python-mode/__matmul__ create mode 100644 snippets/python-mode/__missing__ create mode 100644 snippets/python-mode/__prepare__ create mode 100644 snippets/python-mode/__rmatmul__ create mode 100644 snippets/python-mode/__round__ create mode 100644 snippets/python-mode/__set_name__ create mode 100644 snippets/python-mode/__trunc__ diff --git a/snippets/python-mode/__aenter__ b/snippets/python-mode/__aenter__ new file mode 100644 index 000000000..1e6db3bbc --- /dev/null +++ b/snippets/python-mode/__aenter__ @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: __aenter__ +# key: _aenter +# group: Special methods +# -- +async def __aenter__(self): + $0 + return self diff --git a/snippets/python-mode/__aexit__ b/snippets/python-mode/__aexit__ new file mode 100644 index 000000000..78ab8e2be --- /dev/null +++ b/snippets/python-mode/__aexit__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __aexit__ +# key: _aexit +# group: Special methods +# -- +async def __aexit__(self, exc_type, exc_value, traceback): + $0 diff --git a/snippets/python-mode/__aiter__ b/snippets/python-mode/__aiter__ new file mode 100644 index 000000000..3c8e08bab --- /dev/null +++ b/snippets/python-mode/__aiter__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __aiter__ +# key: _aiter +# group: Special methods +# -- +def __aiter__(self): + return $0 diff --git a/snippets/python-mode/__anext__ b/snippets/python-mode/__anext__ new file mode 100644 index 000000000..aaab2fac8 --- /dev/null +++ b/snippets/python-mode/__anext__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __anext__ +# key: _anext +# group: Special methods +# -- +async def __anext__(self): + return $0 diff --git a/snippets/python-mode/__await__ b/snippets/python-mode/__await__ new file mode 100644 index 000000000..10463d556 --- /dev/null +++ b/snippets/python-mode/__await__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __await__ +# key: _await +# group: Special methods +# -- +def __await__(self): + $0 diff --git a/snippets/python-mode/__bytes__ b/snippets/python-mode/__bytes__ new file mode 100644 index 000000000..f1ab4c963 --- /dev/null +++ b/snippets/python-mode/__bytes__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __bytes__ +# key: _bytes +# group: Special methods +# -- +def __bytes__(self): + return $0 diff --git a/snippets/python-mode/__ceil__ b/snippets/python-mode/__ceil__ new file mode 100644 index 000000000..8ea4c81f4 --- /dev/null +++ b/snippets/python-mode/__ceil__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __ceil__ +# key: _ceil +# group: Special methods +# -- +def __ceil__(self): + return $0 diff --git a/snippets/python-mode/__class_getitem__ b/snippets/python-mode/__class_getitem__ new file mode 100644 index 000000000..9a3f99f83 --- /dev/null +++ b/snippets/python-mode/__class_getitem__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __class_getitem__ +# key: _class_getitem +# group: Special methods +# -- +def __class_getitem__(cls, key): + return $0 diff --git a/snippets/python-mode/__dir__ b/snippets/python-mode/__dir__ new file mode 100644 index 000000000..0eef36432 --- /dev/null +++ b/snippets/python-mode/__dir__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __dir__ +# key: _dir +# group: Special methods +# -- +def __dir__(self): + return $0 diff --git a/snippets/python-mode/__floor__ b/snippets/python-mode/__floor__ new file mode 100644 index 000000000..9c5941229 --- /dev/null +++ b/snippets/python-mode/__floor__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __floor__ +# key: _floor +# group: Special methods +# -- +def __floor__(self): + return $0 diff --git a/snippets/python-mode/__format__ b/snippets/python-mode/__format__ new file mode 100644 index 000000000..efbe00c01 --- /dev/null +++ b/snippets/python-mode/__format__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __format__ +# key: _format +# group: Special methods +# -- +def __format__(self, format_spec): + return $0 diff --git a/snippets/python-mode/__imatmul__ b/snippets/python-mode/__imatmul__ new file mode 100644 index 000000000..e162beede --- /dev/null +++ b/snippets/python-mode/__imatmul__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __imatmul__ +# key: _imatmul +# group: Special methods +# -- +def __imatmul__(self, other): + return $0 diff --git a/snippets/python-mode/__init_subclass__ b/snippets/python-mode/__init_subclass__ new file mode 100644 index 000000000..371f264c2 --- /dev/null +++ b/snippets/python-mode/__init_subclass__ @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: __init_subclass__ +# key: _init_subclass +# group: Special methods +# -- +def __init_subclass__(cls, /${1:, param}, **kwargs): + super().__init_subclass__(**kwargs) + $0 diff --git a/snippets/python-mode/__length_hint__ b/snippets/python-mode/__length_hint__ new file mode 100644 index 000000000..4725963ac --- /dev/null +++ b/snippets/python-mode/__length_hint__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __length_hint__ +# key: _length_hint +# group: Special methods +# -- +def __length_hint__(self): + return $0 diff --git a/snippets/python-mode/__matmul__ b/snippets/python-mode/__matmul__ new file mode 100644 index 000000000..983d29bc5 --- /dev/null +++ b/snippets/python-mode/__matmul__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __matmul__ +# key: _matmul +# group: Special methods +# -- +def __matmul__(self, other): + return $0 diff --git a/snippets/python-mode/__missing__ b/snippets/python-mode/__missing__ new file mode 100644 index 000000000..bf7985150 --- /dev/null +++ b/snippets/python-mode/__missing__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __missing__ +# key: _missing +# group: Special methods +# -- +def __missing__(self): + return $0 diff --git a/snippets/python-mode/__prepare__ b/snippets/python-mode/__prepare__ new file mode 100644 index 000000000..0041ab06b --- /dev/null +++ b/snippets/python-mode/__prepare__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __prepare__ +# key: _prepare +# group: Special methods +# -- +def __prepare__(name, bases, **kwds): + return ${0:\{\}} diff --git a/snippets/python-mode/__rmatmul__ b/snippets/python-mode/__rmatmul__ new file mode 100644 index 000000000..2acfe418f --- /dev/null +++ b/snippets/python-mode/__rmatmul__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __rmatmul__ +# key: _rmatmul +# group: Special methods +# -- +def __rmatmul__(self, other): + return $0 diff --git a/snippets/python-mode/__round__ b/snippets/python-mode/__round__ new file mode 100644 index 000000000..5d6c3f1da --- /dev/null +++ b/snippets/python-mode/__round__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __round__ +# key: _round +# group: Special methods +# -- +def __round__(self, ndigits=None): + return $0 diff --git a/snippets/python-mode/__set_name__ b/snippets/python-mode/__set_name__ new file mode 100644 index 000000000..5bba1fec6 --- /dev/null +++ b/snippets/python-mode/__set_name__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __set_name__ +# key: _set_name +# group: Special methods +# -- +def __set_name__(self, owner, name): + $0 diff --git a/snippets/python-mode/__trunc__ b/snippets/python-mode/__trunc__ new file mode 100644 index 000000000..52401bf1e --- /dev/null +++ b/snippets/python-mode/__trunc__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __trunc__ +# key: _trunc +# group: Special methods +# -- +def __trunc__(self): + return $0 From 464517d0e239e4e2ee8207d56da7b3197c1349f3 Mon Sep 17 00:00:00 2001 From: quazgar Date: Fri, 5 Jan 2024 12:42:51 +0100 Subject: [PATCH 49/86] ENH: python-mode/with-open (#482) --- snippets/python-mode/with-open | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 snippets/python-mode/with-open diff --git a/snippets/python-mode/with-open b/snippets/python-mode/with-open new file mode 100644 index 000000000..a2ccdb301 --- /dev/null +++ b/snippets/python-mode/with-open @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: with-open +# key: wo +# group : control structure +# contributor: Quazgar +# -- +with open(${1:"filename"}${2:, encoding="${3:utf-8}"}${4:, mode="${5:w}"}) as ${6:myfile}: + $0 \ No newline at end of file From d80b2ff60ffd149caf36cea2759e4c432aa73efc Mon Sep 17 00:00:00 2001 From: quazgar Date: Fri, 5 Jan 2024 12:43:21 +0100 Subject: [PATCH 50/86] FIX: Single semicolon at beginning was indented. (#454) The workaround here is to add a double semicolon, iff the start comment is a single semicolon. This also required some fixing of the whitespace calculations. This commit is for issue 387 (https://github.com/AndreaCrotti/yasnippet-snippets/issues/387). --- snippets/prog-mode/commentblock | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/snippets/prog-mode/commentblock b/snippets/prog-mode/commentblock index ba61f61a9..1636b7f6e 100644 --- a/snippets/prog-mode/commentblock +++ b/snippets/prog-mode/commentblock @@ -15,15 +15,20 @@ ${1:$(let* ((col (current-column)) ${1:$(let* ((col (current-column)) (str "") (start (yas-trimmed-comment-start)) + (start (if (string= start ";") ";;" start)) (end (yas-trimmed-comment-end))) (while (< (length str) (ffloor (/ (- 78.0 (+ col (length start) (string-width yas-text) (length end))) 2.0))) (setq str (concat str " "))) - (concat start str))} ${1:comment} ${1:$(let* ((col (current-column)) - (str "") - (start (yas-trimmed-comment-start)) - (end (yas-trimmed-comment-end))) - (while (< (length str) (- 79.0 (if (eq (mod (string-width yas-text) 2) 1) (- col 1) col) (length end))) - (setq str (concat str " "))) + (concat start str))} ${1:comment} ${1:$( + let* ((col (current-column)) + (str "") + (start (yas-trimmed-comment-start)) + (start (if (string= start ";") ";;" start)) + (end (yas-trimmed-comment-end))) + (while (< (length str) + (- 79 (length end) + (if (eq (mod (+ (string-width yas-text) (length start) (length end)) 2) 1) (- col 1) col))) + (setq str (concat str " "))) (concat str end))} ${1:$(let* ((col (current-column)) (str "") From 56dda449c0c3801cea1c826a4d8e1d84ec8b4fd4 Mon Sep 17 00:00:00 2001 From: Bart Brouns Date: Fri, 5 Jan 2024 12:43:37 +0100 Subject: [PATCH 51/86] faust-mode: improve license chooser (#470) * faust-mode: improve licenses chooser Some of them where incorrect or depreciated. See https://spdx.org/licenses/ * faust-mode: add copyright to header --- snippets/faust-mode/declarelicense | 26 +++++++++++++++++++------- snippets/faust-mode/header | 27 ++++++++++++++++++++------- 2 files changed, 39 insertions(+), 14 deletions(-) diff --git a/snippets/faust-mode/declarelicense b/snippets/faust-mode/declarelicense index 608f8a1f8..40af4d992 100644 --- a/snippets/faust-mode/declarelicense +++ b/snippets/faust-mode/declarelicense @@ -4,13 +4,25 @@ # -- declare license "${1:$$ (yas-choose-value '( - "AGPLv3" - "Apache" - "BSD 2-clause" - "BSD 3-clause" - "GPLv2" - "GPLv3" - "LGPLv3" + "AGPL-3.0-only" + "AGPL-3.0-or-later" + "Apache-2.0" + "BSD-2-Clause" + "BSD-3-Clause" + "CC-BY-4.0" + "CC0-1.0" + "EPL-2.0" + "GPL-2.0-only" + "GPL-2.0-or-later" + "GPL-3.0-only" + "GPL-3.0-or-later" + "ISC" + "LGPL-2.1-only" + "LGPL-2.1-or-later" + "LGPL-3.0-only" + "LGPL-3.0-or-later" "MIT" + "MPL-2.0" + "Unlicense" ))}"; $0 \ No newline at end of file diff --git a/snippets/faust-mode/header b/snippets/faust-mode/header index fa447b50b..be1483f45 100644 --- a/snippets/faust-mode/header +++ b/snippets/faust-mode/header @@ -7,13 +7,26 @@ declare version "${2:0.1}"; declare author "$3"; declare license "${4:$$ (yas-choose-value '( - "AGPLv3" - "Apache" - "BSD 2-clause" - "BSD 3-clause" - "GPLv2" - "GPLv3" - "LGPLv3" + "AGPL-3.0-only" + "AGPL-3.0-or-later" + "Apache-2.0" + "BSD-2-Clause" + "BSD-3-Clause" + "CC-BY-4.0" + "CC0-1.0" + "EPL-2.0" + "GPL-2.0-only" + "GPL-2.0-or-later" + "GPL-3.0-only" + "GPL-3.0-or-later" + "ISC" + "LGPL-2.1-only" + "LGPL-2.1-or-later" + "LGPL-3.0-only" + "LGPL-3.0-or-later" "MIT" + "MPL-2.0" + "Unlicense" ))}"; +declare copyright "${5:starting year} - ${6:`(format-time-string "%Y")`$0}, ${7:$3}"; $0 From ab935d7c7b26a89048e64bda6dd9ed0efe453eb6 Mon Sep 17 00:00:00 2001 From: Samuel Kyletoft <45131343+SKyletoft@users.noreply.github.com> Date: Fri, 5 Jan 2024 11:43:52 +0000 Subject: [PATCH 52/86] Add async versions of function snippets for rust (#480) --- snippets/rust-mode/afn | 7 +++++++ snippets/rust-mode/afnr | 7 +++++++ snippets/rust-mode/afns | 7 +++++++ snippets/rust-mode/afnw | 7 +++++++ snippets/rust-mode/pafn | 7 +++++++ snippets/rust-mode/pafnr | 7 +++++++ snippets/rust-mode/pafns | 7 +++++++ snippets/rust-mode/pafnw | 7 +++++++ 8 files changed, 56 insertions(+) create mode 100644 snippets/rust-mode/afn create mode 100644 snippets/rust-mode/afnr create mode 100644 snippets/rust-mode/afns create mode 100644 snippets/rust-mode/afnw create mode 100644 snippets/rust-mode/pafn create mode 100644 snippets/rust-mode/pafnr create mode 100644 snippets/rust-mode/pafns create mode 100644 snippets/rust-mode/pafnw diff --git a/snippets/rust-mode/afn b/snippets/rust-mode/afn new file mode 100644 index 000000000..9ed1d9c76 --- /dev/null +++ b/snippets/rust-mode/afn @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: async fn name() { ... } +# key: afn +# -- +async fn ${1:name}($2) { + $0 +} \ No newline at end of file diff --git a/snippets/rust-mode/afnr b/snippets/rust-mode/afnr new file mode 100644 index 000000000..71cbbbd49 --- /dev/null +++ b/snippets/rust-mode/afnr @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: async fn name() -> Type { ... } +# key: afnr +# -- +async fn ${1:name}($2) -> ${3:Type} { + $0 +} \ No newline at end of file diff --git a/snippets/rust-mode/afns b/snippets/rust-mode/afns new file mode 100644 index 000000000..c88e67228 --- /dev/null +++ b/snippets/rust-mode/afns @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: async fn name(&self) -> Type { ... } +# key: afns +# -- +async fn ${1:name}(${2:&self}) -> ${3:Type} { + $0 +} \ No newline at end of file diff --git a/snippets/rust-mode/afnw b/snippets/rust-mode/afnw new file mode 100644 index 000000000..3c358f88a --- /dev/null +++ b/snippets/rust-mode/afnw @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: async fn name(x: T) where T: Clone { ... } +# key: afnw +# -- +async fn ${1:name}<${2:T}>(${3:x: T}) where ${4:T: Clone} { + $0 +} \ No newline at end of file diff --git a/snippets/rust-mode/pafn b/snippets/rust-mode/pafn new file mode 100644 index 000000000..13edd5ccc --- /dev/null +++ b/snippets/rust-mode/pafn @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: pub async fn name() { ... } +# key: pafn +# -- +pub async fn ${1:name}($2) { + $0 +} \ No newline at end of file diff --git a/snippets/rust-mode/pafnr b/snippets/rust-mode/pafnr new file mode 100644 index 000000000..3ce96818f --- /dev/null +++ b/snippets/rust-mode/pafnr @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: pub async fn name() -> Type { ... } +# key: pafnr +# -- +pub async fn ${1:name}($2) -> ${3:Type} { + $0 +} \ No newline at end of file diff --git a/snippets/rust-mode/pafns b/snippets/rust-mode/pafns new file mode 100644 index 000000000..ad223f904 --- /dev/null +++ b/snippets/rust-mode/pafns @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: pub async fn name(&self) -> Type { ... } +# key: pafns +# -- +pub async fn ${1:name}(${2:&self}) -> ${3:Type} { + $0 +} \ No newline at end of file diff --git a/snippets/rust-mode/pafnw b/snippets/rust-mode/pafnw new file mode 100644 index 000000000..bea6dd2d8 --- /dev/null +++ b/snippets/rust-mode/pafnw @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: pub async fn name(x: T) where T: Clone { ... } +# key: pafnw +# -- +pub async fn ${1:name}<${2:T}>(${3:x: T}) where ${4:T: Clone} { + $0 +} \ No newline at end of file From baf82bd9dc01d0d12cd6b6a798e90c6943aeebe1 Mon Sep 17 00:00:00 2001 From: Changhong Zhong Date: Fri, 5 Jan 2024 19:44:08 +0800 Subject: [PATCH 53/86] Two more c++-mode snippets: forr and lambda (#472) * c++-mode: add fore and lambda keywords * c++-mode: rename fore to forr --- snippets/c++-mode/forr | 7 +++++++ snippets/c++-mode/lambda | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 snippets/c++-mode/forr create mode 100644 snippets/c++-mode/lambda diff --git a/snippets/c++-mode/forr b/snippets/c++-mode/forr new file mode 100644 index 000000000..685b97edb --- /dev/null +++ b/snippets/c++-mode/forr @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: for range +# key: forr +# -- +for (${1:type} ${2:name} : ${3:containerName}) { + $0 +} \ No newline at end of file diff --git a/snippets/c++-mode/lambda b/snippets/c++-mode/lambda new file mode 100644 index 000000000..d7ade5b3f --- /dev/null +++ b/snippets/c++-mode/lambda @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: lambda +# key: lambda +# -- +[${1:capture clause}](${2:parameters}) { + $0 +} \ No newline at end of file From 441bad332344b02402add62d085b8313bdc7f618 Mon Sep 17 00:00:00 2001 From: Daniel Nicolai Date: Mon, 15 Jan 2024 12:38:30 +0100 Subject: [PATCH 54/86] Update main_class (#484) Place cursor at properly indented position --- snippets/java-mode/main_class | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/java-mode/main_class b/snippets/java-mode/main_class index ed3ea6d62..f94469ac7 100644 --- a/snippets/java-mode/main_class +++ b/snippets/java-mode/main_class @@ -7,6 +7,6 @@ class `(file-name-nondirectory (file-name-sans-extension (buffer-file-name)))` { public static void main(String[] args) { -$0 +$> $0 +} } -} \ No newline at end of file From 1080fc4776ae1ebada3eba79b9a21fb579c0901c Mon Sep 17 00:00:00 2001 From: Konstantin K Date: Wed, 21 Feb 2024 19:21:15 +0300 Subject: [PATCH 55/86] Fix native-comp warnings in *.el files (#485) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * prog-mode: fix "docstring too wide" warning in .yas-setup.el Fixes a warning:: snippets/prog-mode/.yas-setup.el:32:2: Warning: docstring wider than 80 characters * treewide: add lexical binding directive to *.el files Fixes a bunch of warnings like: …/.yas-setup.el:1:1: Warning: file has no ‘lexical-binding’ directive on its first line --- snippets/bibtex-mode/.yas-setup.el | 1 + snippets/c++-mode/.yas-setup.el | 1 + snippets/julia-mode/.yas-setup.el | 1 + snippets/php-mode/.yas-setup.el | 2 +- snippets/prog-mode/.yas-setup.el | 6 ++++-- snippets/python-mode/.yas-setup.el | 1 + snippets/rjsx-mode/.yas-setup.el | 2 +- yasnippet-snippets.el | 2 +- 8 files changed, 11 insertions(+), 5 deletions(-) diff --git a/snippets/bibtex-mode/.yas-setup.el b/snippets/bibtex-mode/.yas-setup.el index e38409558..97616ad0e 100644 --- a/snippets/bibtex-mode/.yas-setup.el +++ b/snippets/bibtex-mode/.yas-setup.el @@ -1,3 +1,4 @@ +;;; -*- lexical-binding: t -*- (require 'yasnippet) (require 'yasnippet-snippets) diff --git a/snippets/c++-mode/.yas-setup.el b/snippets/c++-mode/.yas-setup.el index 59c0295a5..bb1761a2b 100644 --- a/snippets/c++-mode/.yas-setup.el +++ b/snippets/c++-mode/.yas-setup.el @@ -1,3 +1,4 @@ +;;; -*- lexical-binding: t -*- (require 'yasnippet) (defun yas-c++-class-name (str) diff --git a/snippets/julia-mode/.yas-setup.el b/snippets/julia-mode/.yas-setup.el index 630d1dbd7..cfa57a3b3 100644 --- a/snippets/julia-mode/.yas-setup.el +++ b/snippets/julia-mode/.yas-setup.el @@ -1,3 +1,4 @@ +;;; -*- lexical-binding: t -*- (require 'yasnippet) (defun yas-julia-iteration-keyword-choice () diff --git a/snippets/php-mode/.yas-setup.el b/snippets/php-mode/.yas-setup.el index ea056028d..dc662f4bb 100644 --- a/snippets/php-mode/.yas-setup.el +++ b/snippets/php-mode/.yas-setup.el @@ -1,4 +1,4 @@ -;;; .yas-setup.el --- Yasnippet helper functions for PHP snippets +;;; .yas-setup.el --- Yasnippet helper functions for PHP snippets -*- lexical-binding: t -*- ;;; Commentary: diff --git a/snippets/prog-mode/.yas-setup.el b/snippets/prog-mode/.yas-setup.el index 486ae471b..7d6127daa 100644 --- a/snippets/prog-mode/.yas-setup.el +++ b/snippets/prog-mode/.yas-setup.el @@ -1,3 +1,4 @@ +;;; -*- lexical-binding: t -*- (require 'yasnippet) ;; whitespace removing functions from Magnar Sveen ;;;;;;;;;;;;;;;;;;;;;;;;;;;; @@ -29,8 +30,9 @@ (yas-s-trim comment-start)) (defun yas-trimmed-comment-end () - "This function returns `comment-end' trimmed by whitespaces if `comment-end' is not empty. -Otherwise the reversed output of function `yas-trimmed-comment-start' is returned." + "This function returns `comment-end' trimmed by whitespaces if +`comment-end' is not empty. Otherwise the reversed output of +function `yas-trimmed-comment-start' is returned." (if (eq (length comment-end) 0) (yas-string-reverse (yas-trimmed-comment-start)) (yas-s-trim comment-end))) diff --git a/snippets/python-mode/.yas-setup.el b/snippets/python-mode/.yas-setup.el index 8b292156b..e9145efd7 100644 --- a/snippets/python-mode/.yas-setup.el +++ b/snippets/python-mode/.yas-setup.el @@ -1,3 +1,4 @@ +;;; -*- lexical-binding: t -*- (require 'yasnippet) (defvar yas-text) diff --git a/snippets/rjsx-mode/.yas-setup.el b/snippets/rjsx-mode/.yas-setup.el index b89291641..8a103a351 100644 --- a/snippets/rjsx-mode/.yas-setup.el +++ b/snippets/rjsx-mode/.yas-setup.el @@ -1,4 +1,4 @@ -;;; .yas-setup.el --- Yasnippet helper functions for JSX snippets +;;; .yas-setup.el --- Yasnippet helper functions for JSX snippets -*- lexical-binding: t -*- ;;; Commentary: diff --git a/yasnippet-snippets.el b/yasnippet-snippets.el index d50b895b3..958f6da57 100644 --- a/yasnippet-snippets.el +++ b/yasnippet-snippets.el @@ -1,4 +1,4 @@ -;;; yasnippet-snippets.el --- Collection of yasnippet snippets +;;; yasnippet-snippets.el --- Collection of yasnippet snippets -*- lexical-binding: t -*- ;; Copyright (C) 2017 Andrea Crotti From e6ec9f1822913cea7dc67cde6aeb8f2625980950 Mon Sep 17 00:00:00 2001 From: Stephen Hassard <2355041+shassard@users.noreply.github.com> Date: Wed, 21 Feb 2024 08:21:45 -0800 Subject: [PATCH 56/86] Fix yasnippet unknown directive warning (#488) While loading these snippets, the following warning is emitted: Ignoring unknown directive "cotributor" in file: ... --- snippets/cc-mode/file_description | 2 +- snippets/cc-mode/function_description | 2 +- snippets/cc-mode/member_description | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/snippets/cc-mode/file_description b/snippets/cc-mode/file_description index af7bbbae5..25c086ffd 100644 --- a/snippets/cc-mode/file_description +++ b/snippets/cc-mode/file_description @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -#cotributor: Henrique Jung +# contributor: Henrique Jung # name: File description # key: \file # group: doxygen diff --git a/snippets/cc-mode/function_description b/snippets/cc-mode/function_description index 4f22ec8af..dcfdd26ad 100644 --- a/snippets/cc-mode/function_description +++ b/snippets/cc-mode/function_description @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -#cotributor: Henrique Jung +# contributor: Henrique Jung # name: Function description # key: \brief # group: doxygen diff --git a/snippets/cc-mode/member_description b/snippets/cc-mode/member_description index 55bfd193c..c27767f7e 100644 --- a/snippets/cc-mode/member_description +++ b/snippets/cc-mode/member_description @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -#cotributor: Henrique Jung +# contributor: Henrique Jung # name: Member description # key: !< # group: doxygen From 38c8a5818c1489aac6d360bd37415565c7c0f366 Mon Sep 17 00:00:00 2001 From: "Rahul M. Juliato" Date: Tue, 7 May 2024 06:41:53 -0300 Subject: [PATCH 57/86] feat: links tsx-ts, markdown-ts and typescriptreact-mode (#497) --- snippets/markdown-ts-mode/.yas-parents | 1 + snippets/tsx-ts-mode/.yas-parents | 1 + snippets/typescriptreact-mode/.yas-parents | 1 + 3 files changed, 3 insertions(+) create mode 100644 snippets/markdown-ts-mode/.yas-parents create mode 100644 snippets/tsx-ts-mode/.yas-parents create mode 100644 snippets/typescriptreact-mode/.yas-parents diff --git a/snippets/markdown-ts-mode/.yas-parents b/snippets/markdown-ts-mode/.yas-parents new file mode 100644 index 000000000..903d0c704 --- /dev/null +++ b/snippets/markdown-ts-mode/.yas-parents @@ -0,0 +1 @@ +markdown-mode diff --git a/snippets/tsx-ts-mode/.yas-parents b/snippets/tsx-ts-mode/.yas-parents new file mode 100644 index 000000000..a540072f1 --- /dev/null +++ b/snippets/tsx-ts-mode/.yas-parents @@ -0,0 +1 @@ +typescript-mode diff --git a/snippets/typescriptreact-mode/.yas-parents b/snippets/typescriptreact-mode/.yas-parents new file mode 100644 index 000000000..a540072f1 --- /dev/null +++ b/snippets/typescriptreact-mode/.yas-parents @@ -0,0 +1 @@ +typescript-mode From a1877cb930a11f05d7897cf4b3a20c896fcd0dc0 Mon Sep 17 00:00:00 2001 From: USAMI Kenta Date: Tue, 7 May 2024 18:42:07 +0900 Subject: [PATCH 58/86] Add declare(strict_types=1); to PHP instead of ticks (#496) --- snippets/php-mode/strict-types | 7 +++++++ snippets/php-mode/ticks | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 snippets/php-mode/strict-types delete mode 100644 snippets/php-mode/ticks diff --git a/snippets/php-mode/strict-types b/snippets/php-mode/strict-types new file mode 100644 index 000000000..69d64e2d8 --- /dev/null +++ b/snippets/php-mode/strict-types @@ -0,0 +1,7 @@ +-# -*- mode: snippet -*- +-# contributor: USAMI Kenta +-# name: declare(strict_types=1) +-# key: strict_types +-# group: definitions +-# -- +declare(strict_types=1); diff --git a/snippets/php-mode/ticks b/snippets/php-mode/ticks deleted file mode 100644 index c0a68c995..000000000 --- a/snippets/php-mode/ticks +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# contributor: USAMI Kenta -# name: declare(ticks=) -# key: ticks -# group: definitions -# -- -declare(ticks=${1:1}); \ No newline at end of file From 8af9224094ed205f4740501bfb91472e1def898d Mon Sep 17 00:00:00 2001 From: Alec Troemel Date: Tue, 7 May 2024 04:42:22 -0500 Subject: [PATCH 59/86] Alias js-ts-mode to js-mode (#494) --- snippets/js-ts-mode/.yas-parents | 1 + 1 file changed, 1 insertion(+) create mode 100644 snippets/js-ts-mode/.yas-parents diff --git a/snippets/js-ts-mode/.yas-parents b/snippets/js-ts-mode/.yas-parents new file mode 100644 index 000000000..27dab3004 --- /dev/null +++ b/snippets/js-ts-mode/.yas-parents @@ -0,0 +1 @@ +js-mode From 3c09fa913511ebd1fb5e5b014ec04067c9335f7b Mon Sep 17 00:00:00 2001 From: Stephen Hassard <2355041+shassard@users.noreply.github.com> Date: Tue, 7 May 2024 02:42:45 -0700 Subject: [PATCH 60/86] Fix unknown directive warnings in c++-mode/class11 (#495) The following warnings are emitted by yasnippet: ``` Ignoring unknown directive "desc" in file: .../yasnippet-snippets/snippets/c++-mode/class11 Ignoring unknown directive "\\${[0-9N]*" in file: .../yasnippet-snippets/snippets/c++-mode/class11 Ignoring unknown directive "References" in file: .../yasnippet-snippets/snippets/c++-mode/class11 ``` Use an unconventional ## to mark comments so yasnippet will ignore lines that contain colons. --- snippets/c++-mode/class11 | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/snippets/c++-mode/class11 b/snippets/c++-mode/class11 index 815129952..73390b09b 100644 --- a/snippets/c++-mode/class11 +++ b/snippets/c++-mode/class11 @@ -4,17 +4,19 @@ # group: c++11 # uuid: d7c41f87-9b8a-479d-bb12-89f4cbdd46a7 # contributor: Ved Vyas -# desc: Snippet for C++11 classes based on c++-mode/class. Allows for Rule of -# [0, All]. A choice between ";", " = default;", and " = delete;" is presented -# for each method. The methods and some of the optional keywords/specifiers are -# exposed as fields that users can easily skip-and-clear. -# Hackish query-replace-regexp to renumber non-mirror fields in the region -# between public and protected (can use N as a field number in the snippet): -# \${[0-9N]*:\([^\$]\) -> ${\,(+ 2 \#):\1 -# References: -# 1. http://en.cppreference.com/w/cpp/language/rule_of_three#Rule_of_five -# 2. https://en.wikipedia.org/wiki/Rule_of_three_%28C%2B%2B_programming%29#Example_in_C.2B.2B -# 3. http://stackoverflow.com/a/4782927 +# +## Snippet for C++11 classes based on c++-mode/class. Allows for Rule of +## [0, All]. A choice between ";", " = default;", and " = delete;" is presented +## for each method. The methods and some of the optional keywords/specifiers are +## exposed as fields that users can easily skip-and-clear. +## Hackish query-replace-regexp to renumber non-mirror fields in the region +## between public and protected (can use N as a field number in the snippet): +## \${[0-9N]*:\([^\$]\) -> ${\,(+ 2 \#):\1 +## +## References +## 1. http://en.cppreference.com/w/cpp/language/rule_of_three#Rule_of_five +## 2. https://en.wikipedia.org/wiki/Rule_of_three_%28C%2B%2B_programming%29#Example_in_C.2B.2B +## 3. http://stackoverflow.com/a/4782927 # -- class ${1:Name} { From ed04a0b331487a048d80f1f34485158a88ada251 Mon Sep 17 00:00:00 2001 From: Pablo Stafforini Date: Tue, 7 May 2024 06:43:10 -0300 Subject: [PATCH 61/86] Make metadata section conform to existing directives (#493) --- snippets/bibtex-mode/bookinbook | 2 +- snippets/bibtex-mode/collection | 2 +- snippets/bibtex-mode/dataset | 2 +- snippets/bibtex-mode/electronic | 2 +- snippets/bibtex-mode/inreference | 2 +- snippets/bibtex-mode/mvbook | 2 +- snippets/bibtex-mode/mvcollection | 2 +- snippets/bibtex-mode/mvreference | 2 +- snippets/bibtex-mode/online | 2 +- snippets/bibtex-mode/patent | 2 +- snippets/bibtex-mode/periodical | 2 +- snippets/bibtex-mode/reference | 2 +- snippets/bibtex-mode/report | 2 +- snippets/bibtex-mode/set | 2 +- snippets/bibtex-mode/suppbook | 2 +- snippets/bibtex-mode/suppcollection | 2 +- snippets/bibtex-mode/suppperiodical | 2 +- snippets/bibtex-mode/thesis | 2 +- snippets/bibtex-mode/xdata | 2 +- snippets/scala-mode/app | 2 +- snippets/scala-mode/case | 2 +- snippets/scala-mode/cc | 2 +- snippets/scala-mode/co | 2 +- snippets/scala-mode/cons | 2 +- snippets/scala-mode/def | 2 +- snippets/scala-mode/doc | 2 +- snippets/scala-mode/for | 2 +- snippets/scala-mode/if | 2 +- snippets/scala-mode/ls | 2 +- snippets/scala-mode/main | 2 +- snippets/scala-mode/match | 2 +- snippets/scala-mode/ob | 2 +- snippets/scala-mode/throw | 2 +- snippets/scala-mode/try | 2 +- snippets/scala-mode/valueclass | 2 +- 35 files changed, 35 insertions(+), 35 deletions(-) diff --git a/snippets/bibtex-mode/bookinbook b/snippets/bibtex-mode/bookinbook index 2d4dc1eba..e5ee3690f 100644 --- a/snippets/bibtex-mode/bookinbook +++ b/snippets/bibtex-mode/bookinbook @@ -1,7 +1,7 @@ # -*- mode: snippet -*- # name: bookinbook # key: bookinbook -# author: Spenser Truex +# contributor: Spenser Truex # -- @bookinbook{ ${title}, author = {${author}}, diff --git a/snippets/bibtex-mode/collection b/snippets/bibtex-mode/collection index ddf7f8639..bc7acd21f 100644 --- a/snippets/bibtex-mode/collection +++ b/snippets/bibtex-mode/collection @@ -1,7 +1,7 @@ # -*- mode: snippet -*- # name: collection # key: collection -# author: Spenser Truex +# contributor: Spenser Truex # -- @collection{ ${title}, editor = {${editor}}, diff --git a/snippets/bibtex-mode/dataset b/snippets/bibtex-mode/dataset index c03bb9f38..f6004dd95 100644 --- a/snippets/bibtex-mode/dataset +++ b/snippets/bibtex-mode/dataset @@ -1,7 +1,7 @@ # -*- mode: snippet -*- # name: dataset # key: dataset -# author: Spenser Truex +# contributor: Spenser Truex # -- @dataset{ ${title} title = {${title}}, diff --git a/snippets/bibtex-mode/electronic b/snippets/bibtex-mode/electronic index b5cefece7..87d355ef3 100644 --- a/snippets/bibtex-mode/electronic +++ b/snippets/bibtex-mode/electronic @@ -1,7 +1,7 @@ # -*- mode: snippet -*- # name: electronic # key: electronic -# author: Spenser Truex +# contributor: Spenser Truex # -- @electronic{ ${title}, author = {${author}}, diff --git a/snippets/bibtex-mode/inreference b/snippets/bibtex-mode/inreference index 20e3ccd96..73b36fc28 100644 --- a/snippets/bibtex-mode/inreference +++ b/snippets/bibtex-mode/inreference @@ -1,7 +1,7 @@ # -*- mode: snippet -*- # name: inreference # key: inreference -# author: Spenser Truex +# contributor: Spenser Truex # -- @inreference{ ${title}, author = {${author}}, diff --git a/snippets/bibtex-mode/mvbook b/snippets/bibtex-mode/mvbook index b2761f8fb..002d5a244 100644 --- a/snippets/bibtex-mode/mvbook +++ b/snippets/bibtex-mode/mvbook @@ -1,7 +1,7 @@ # -*- mode: snippet -*- # name: mvbook # key: mvbook -# author: Spenser Truex +# contributor: Spenser Truex # -- @mvbook{ ${title}, author = {${author}}, diff --git a/snippets/bibtex-mode/mvcollection b/snippets/bibtex-mode/mvcollection index b54f46143..c390d1499 100644 --- a/snippets/bibtex-mode/mvcollection +++ b/snippets/bibtex-mode/mvcollection @@ -1,7 +1,7 @@ # -*- mode: snippet -*- # name: mvcollection # key: mvcollection -# author: Spenser Truex +# contributor: Spenser Truex # -- @mvcollection{ ${title}, editor = {${editor}}, diff --git a/snippets/bibtex-mode/mvreference b/snippets/bibtex-mode/mvreference index d6380bc7b..afabdfd48 100644 --- a/snippets/bibtex-mode/mvreference +++ b/snippets/bibtex-mode/mvreference @@ -1,7 +1,7 @@ # -*- mode: snippet -*- # name: mvereference # key: mvreference -# author: Spenser Truex +# contributor: Spenser Truex # -- @mvreference{ ${title}, editor = {${editor}}, diff --git a/snippets/bibtex-mode/online b/snippets/bibtex-mode/online index 35005a461..04ed15789 100644 --- a/snippets/bibtex-mode/online +++ b/snippets/bibtex-mode/online @@ -1,7 +1,7 @@ # -*- mode: snippet -*- # name: online # key: online -# author: Spenser Truex +# contributor: Spenser Truex # -- @online{ ${title}, author = {${author}}, diff --git a/snippets/bibtex-mode/patent b/snippets/bibtex-mode/patent index 56bd91c4e..5e4101b0e 100644 --- a/snippets/bibtex-mode/patent +++ b/snippets/bibtex-mode/patent @@ -1,7 +1,7 @@ # -*- mode: snippet -*- # name: patent # key: patent -# author: Spenser Truex +# contributor: Spenser Truex # -- @patent{ ${title}, title = {${title}}, diff --git a/snippets/bibtex-mode/periodical b/snippets/bibtex-mode/periodical index 711fc013d..8389c0f81 100644 --- a/snippets/bibtex-mode/periodical +++ b/snippets/bibtex-mode/periodical @@ -1,7 +1,7 @@ # -*- mode: snippet -*- # name: periodical # key: periodical -# author: Spenser Truex +# contributor: Spenser Truex # -- @periodical{ ${title} editor = {${editor}}, diff --git a/snippets/bibtex-mode/reference b/snippets/bibtex-mode/reference index bb3e0cf56..4bec9edb5 100644 --- a/snippets/bibtex-mode/reference +++ b/snippets/bibtex-mode/reference @@ -1,7 +1,7 @@ # -*- mode: snippet -*- # name: reference # key: reference -# author: Spenser Truex +# contributor: Spenser Truex # -- @reference{ ${title}, editor = {${editor}}, diff --git a/snippets/bibtex-mode/report b/snippets/bibtex-mode/report index 1a18ec020..af218a0b9 100644 --- a/snippets/bibtex-mode/report +++ b/snippets/bibtex-mode/report @@ -1,7 +1,7 @@ # -*- mode: snippet -*- # name: report # key: report -# author: Spenser Truex +# contributor: Spenser Truex # -- @report{ ${title}, author = {${author}}, diff --git a/snippets/bibtex-mode/set b/snippets/bibtex-mode/set index eb5ae3a1c..42c07c6b6 100644 --- a/snippets/bibtex-mode/set +++ b/snippets/bibtex-mode/set @@ -1,7 +1,7 @@ # -*- mode: snippet -*- # name: set # key: set -# author: Spenser Truex +# contributor: Spenser Truex # -- @set{${title}, entryset = {${entryset}} diff --git a/snippets/bibtex-mode/suppbook b/snippets/bibtex-mode/suppbook index 00bc3f0fe..1baf70135 100644 --- a/snippets/bibtex-mode/suppbook +++ b/snippets/bibtex-mode/suppbook @@ -1,7 +1,7 @@ # -*- mode: snippet -*- # name: suppbook # key: suppbook -# author: Spenser Truex +# contributor: Spenser Truex # -- @suppbook{ ${title}, author = {${author}}, diff --git a/snippets/bibtex-mode/suppcollection b/snippets/bibtex-mode/suppcollection index 11efe5ed8..1c2796ef9 100644 --- a/snippets/bibtex-mode/suppcollection +++ b/snippets/bibtex-mode/suppcollection @@ -1,7 +1,7 @@ # -*- mode: snippet -*- # name: suppcollection # key: suppcollection -# author: Spenser Truex +# contributor: Spenser Truex # -- @suppcollection{ ${title}, author = {${author}}, diff --git a/snippets/bibtex-mode/suppperiodical b/snippets/bibtex-mode/suppperiodical index bf43a22b8..bfea889fd 100644 --- a/snippets/bibtex-mode/suppperiodical +++ b/snippets/bibtex-mode/suppperiodical @@ -1,7 +1,7 @@ # -*- mode: snippet -*- # name: suppperiodical # key: suppperiodical -# author: Spenser Truex +# contributor: Spenser Truex # -- @suppperiodical{ ${title}, author = {${author}}, diff --git a/snippets/bibtex-mode/thesis b/snippets/bibtex-mode/thesis index 8f2a64751..9508c9b4b 100644 --- a/snippets/bibtex-mode/thesis +++ b/snippets/bibtex-mode/thesis @@ -1,7 +1,7 @@ # -*- mode: snippet -*- # name: thesis # key: thesis -# author: Spenser Truex +# contributor: Spenser Truex # -- @thesis{ ${title}, author = {${author}}, diff --git a/snippets/bibtex-mode/xdata b/snippets/bibtex-mode/xdata index e9fc606a7..f3a561332 100644 --- a/snippets/bibtex-mode/xdata +++ b/snippets/bibtex-mode/xdata @@ -1,7 +1,7 @@ # -*- mode: snippet -*- # name: xdata # key: xdata -# author: Spenser Truex +# contributor: Spenser Truex # -- @xdata{ ${title}, $0 diff --git a/snippets/scala-mode/app b/snippets/scala-mode/app index cbea1d703..b21cdb5cb 100644 --- a/snippets/scala-mode/app +++ b/snippets/scala-mode/app @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -#Author : Anders Bach Nielsen +# contributor: Anders Bach Nielsen # name: object name extends App # key: app # -- diff --git a/snippets/scala-mode/case b/snippets/scala-mode/case index bf386e80c..5e0366087 100644 --- a/snippets/scala-mode/case +++ b/snippets/scala-mode/case @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -#Author : Jonas Bonèr +# contributor: Jonas Bonèr # name: case pattern => # key: case # -- diff --git a/snippets/scala-mode/cc b/snippets/scala-mode/cc index cfc064417..95ff430ee 100644 --- a/snippets/scala-mode/cc +++ b/snippets/scala-mode/cc @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -#Author : Sam Halliday +# contributor: Sam Halliday # name: case class T(arg: A) # key: cc # -- diff --git a/snippets/scala-mode/co b/snippets/scala-mode/co index cf3246cb8..8bbafc0de 100644 --- a/snippets/scala-mode/co +++ b/snippets/scala-mode/co @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -#Author : Jonas Bonèr +# contributor: Jonas Bonèr # name: case object T # key: co # -- diff --git a/snippets/scala-mode/cons b/snippets/scala-mode/cons index 0a00691bc..2acdaffae 100644 --- a/snippets/scala-mode/cons +++ b/snippets/scala-mode/cons @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -#Author : Jonas Bonèr +# contributor: Jonas Bonèr # name: element1 :: element2 # key: cons # -- diff --git a/snippets/scala-mode/def b/snippets/scala-mode/def index d426b6861..a1dcc7f46 100644 --- a/snippets/scala-mode/def +++ b/snippets/scala-mode/def @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -#Author : Jonas Bonèr +# contributor: Jonas Bonèr # name: def f(arg: T): R = {...} # key: def # -- diff --git a/snippets/scala-mode/doc b/snippets/scala-mode/doc index a4b951869..00e5f071f 100644 --- a/snippets/scala-mode/doc +++ b/snippets/scala-mode/doc @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -#Author : Anders Bach Nielsen +# contributor: Anders Bach Nielsen # name: /** ... */ # key: doc # -- diff --git a/snippets/scala-mode/for b/snippets/scala-mode/for index 32a72e0b7..34c1b27d7 100644 --- a/snippets/scala-mode/for +++ b/snippets/scala-mode/for @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -#Author : Sam Halliday +# contributor: Sam Halliday # name: for { x <- xs } yield # key: for # -- diff --git a/snippets/scala-mode/if b/snippets/scala-mode/if index 28d50a74b..65979e100 100644 --- a/snippets/scala-mode/if +++ b/snippets/scala-mode/if @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -#Author : Jonas Bonèr +# contributor: Jonas Bonèr # name: if (cond) { .. } # key: if # -- diff --git a/snippets/scala-mode/ls b/snippets/scala-mode/ls index 82f9e43ca..4445fb273 100644 --- a/snippets/scala-mode/ls +++ b/snippets/scala-mode/ls @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -#Author : Jonas Bonèr +# contributor: Jonas Bonèr # name: List(..) # key: ls # -- diff --git a/snippets/scala-mode/main b/snippets/scala-mode/main index ad4e9fc48..4121c2bfb 100644 --- a/snippets/scala-mode/main +++ b/snippets/scala-mode/main @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -#Author : Jonas Bonèr +# contributor: Jonas Bonèr # name: def main(args: Array[String]) = { ... } # key: main # -- diff --git a/snippets/scala-mode/match b/snippets/scala-mode/match index 86e5cbf8e..30c694eae 100644 --- a/snippets/scala-mode/match +++ b/snippets/scala-mode/match @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -#Author : Jonas Bonèr +# contributor: Jonas Bonèr # name: cc match { .. } # key: match # -- diff --git a/snippets/scala-mode/ob b/snippets/scala-mode/ob index ce88961ab..306372054 100644 --- a/snippets/scala-mode/ob +++ b/snippets/scala-mode/ob @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -#Author : Jonas Bonèr +# contributor: Jonas Bonèr # name: object name extends T # key: ob # -- diff --git a/snippets/scala-mode/throw b/snippets/scala-mode/throw index 525d0c433..c05fd88c3 100644 --- a/snippets/scala-mode/throw +++ b/snippets/scala-mode/throw @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -#Author : Jonas Bonèr +# contributor: Jonas Bonèr # name: throw new Exception # key: throw # -- diff --git a/snippets/scala-mode/try b/snippets/scala-mode/try index ca0557cfb..b02fcff3e 100644 --- a/snippets/scala-mode/try +++ b/snippets/scala-mode/try @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -#Author : Sam Halliday +# contributor: Sam Halliday # name: try { .. } catch { case e => ..} # key: try # -- diff --git a/snippets/scala-mode/valueclass b/snippets/scala-mode/valueclass index 8ad8eadfc..5adecf4ef 100644 --- a/snippets/scala-mode/valueclass +++ b/snippets/scala-mode/valueclass @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# Author: Michael Pollmeier +# contributor: Michael Pollmeier # name: value class # key: vc # -- From 6fafad13bb4689600285d9e38c61958dd63c356d Mon Sep 17 00:00:00 2001 From: xiliuya <67564860+xiliuya@users.noreply.github.com> Date: Tue, 7 May 2024 17:43:34 +0800 Subject: [PATCH 62/86] add some snippet (#469) --- snippets/gdscript-mode/class | 7 +++++++ snippets/gdscript-mode/class_name | 6 ++++++ snippets/gdscript-mode/const | 6 ++++++ snippets/gdscript-mode/enum | 6 ++++++ snippets/gdscript-mode/for | 7 +++++++ snippets/gdscript-mode/func | 7 +++++++ snippets/gdscript-mode/if | 7 +++++++ snippets/gdscript-mode/ife | 9 +++++++++ snippets/gdscript-mode/match | 8 ++++++++ snippets/gdscript-mode/onready | 6 ++++++ snippets/gdscript-mode/print | 5 +++++ snippets/gdscript-mode/return | 5 +++++ snippets/gdscript-mode/setget | 6 ++++++ snippets/gdscript-mode/static_func | 7 +++++++ snippets/gdscript-mode/var | 6 ++++++ snippets/gdscript-mode/while | 7 +++++++ 16 files changed, 105 insertions(+) create mode 100644 snippets/gdscript-mode/class create mode 100644 snippets/gdscript-mode/class_name create mode 100644 snippets/gdscript-mode/const create mode 100644 snippets/gdscript-mode/enum create mode 100644 snippets/gdscript-mode/for create mode 100644 snippets/gdscript-mode/func create mode 100644 snippets/gdscript-mode/if create mode 100644 snippets/gdscript-mode/ife create mode 100644 snippets/gdscript-mode/match create mode 100644 snippets/gdscript-mode/onready create mode 100644 snippets/gdscript-mode/print create mode 100644 snippets/gdscript-mode/return create mode 100644 snippets/gdscript-mode/setget create mode 100644 snippets/gdscript-mode/static_func create mode 100644 snippets/gdscript-mode/var create mode 100644 snippets/gdscript-mode/while diff --git a/snippets/gdscript-mode/class b/snippets/gdscript-mode/class new file mode 100644 index 000000000..f857cdbd4 --- /dev/null +++ b/snippets/gdscript-mode/class @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: class +# key: cls +# group: object oriented +# -- +class ${1:class}: + $0 diff --git a/snippets/gdscript-mode/class_name b/snippets/gdscript-mode/class_name new file mode 100644 index 000000000..bfc9e184c --- /dev/null +++ b/snippets/gdscript-mode/class_name @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: class_name +# key: clsn +# group: object oriented +# -- +class_name ${1:Item} = ${2:"res://icons/item.png"} \ No newline at end of file diff --git a/snippets/gdscript-mode/const b/snippets/gdscript-mode/const new file mode 100644 index 000000000..47374c80f --- /dev/null +++ b/snippets/gdscript-mode/const @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: const +# key: const +# group: definitions +# -- +const ${1:name} = $0 \ No newline at end of file diff --git a/snippets/gdscript-mode/enum b/snippets/gdscript-mode/enum new file mode 100644 index 000000000..0f2cae1cf --- /dev/null +++ b/snippets/gdscript-mode/enum @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: enum +# key: enum +# group: definitions +# -- +enum $1 {$2} \ No newline at end of file diff --git a/snippets/gdscript-mode/for b/snippets/gdscript-mode/for new file mode 100644 index 000000000..30cdf7ca6 --- /dev/null +++ b/snippets/gdscript-mode/for @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: for ... in ... : ... +# key: for +# group : control structure +# -- +for ${var} in ${collection}: + ${0:pass} \ No newline at end of file diff --git a/snippets/gdscript-mode/func b/snippets/gdscript-mode/func new file mode 100644 index 000000000..dd666604a --- /dev/null +++ b/snippets/gdscript-mode/func @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: func +# key: f +# group: definitions +# -- +func ${1:func_name} (${2:param}): + ${0:pass} \ No newline at end of file diff --git a/snippets/gdscript-mode/if b/snippets/gdscript-mode/if new file mode 100644 index 000000000..72bf23b23 --- /dev/null +++ b/snippets/gdscript-mode/if @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: if +# key: if +# group : control structure +# -- +if ${1:condition}: + ${0:pass} \ No newline at end of file diff --git a/snippets/gdscript-mode/ife b/snippets/gdscript-mode/ife new file mode 100644 index 000000000..767d9c493 --- /dev/null +++ b/snippets/gdscript-mode/ife @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: ife +# key: ife +# group : control structure +# -- +if ${1:condition}: + ${2:pass} +else: + ${3:pass} \ No newline at end of file diff --git a/snippets/gdscript-mode/match b/snippets/gdscript-mode/match new file mode 100644 index 000000000..f4ca09ea1 --- /dev/null +++ b/snippets/gdscript-mode/match @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: match +# key: match +# group: control structure +# -- +match ${1:expression}: + ${2:pattern}: + ${3:pass} \ No newline at end of file diff --git a/snippets/gdscript-mode/onready b/snippets/gdscript-mode/onready new file mode 100644 index 000000000..ed381d29e --- /dev/null +++ b/snippets/gdscript-mode/onready @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: onready +# key: onr +# group: definitions +# -- +onready var ${1:name} = $0 \ No newline at end of file diff --git a/snippets/gdscript-mode/print b/snippets/gdscript-mode/print new file mode 100644 index 000000000..cc1c797e4 --- /dev/null +++ b/snippets/gdscript-mode/print @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: print +# key: p +# -- +print($0) \ No newline at end of file diff --git a/snippets/gdscript-mode/return b/snippets/gdscript-mode/return new file mode 100644 index 000000000..641a308a3 --- /dev/null +++ b/snippets/gdscript-mode/return @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: return +# key: r +# -- +return $0 \ No newline at end of file diff --git a/snippets/gdscript-mode/setget b/snippets/gdscript-mode/setget new file mode 100644 index 000000000..457a5facc --- /dev/null +++ b/snippets/gdscript-mode/setget @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: setget +# key: vsg +# group: definitions +# -- +var ${1:variable} = ${2:value} setget ${3:setterfunc}, ${4:getterfunc} \ No newline at end of file diff --git a/snippets/gdscript-mode/static_func b/snippets/gdscript-mode/static_func new file mode 100644 index 000000000..e45a5bb04 --- /dev/null +++ b/snippets/gdscript-mode/static_func @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: static_func +# key: sf +# group: definitions +# -- +static func ${1:func_name} (${2:param}): + ${0:pass} \ No newline at end of file diff --git a/snippets/gdscript-mode/var b/snippets/gdscript-mode/var new file mode 100644 index 000000000..648ed11b9 --- /dev/null +++ b/snippets/gdscript-mode/var @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: var +# key: var +# group: definitions +# -- +var ${1:name} = $0 \ No newline at end of file diff --git a/snippets/gdscript-mode/while b/snippets/gdscript-mode/while new file mode 100644 index 000000000..ae9e9ccc6 --- /dev/null +++ b/snippets/gdscript-mode/while @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: while +# key: wh +# group: control structure +# -- +while ${1:True}: + ${0:pass} \ No newline at end of file From 856b994fbd62917bb239fe33d4e63fd386cdc8a9 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Mon, 3 Jun 2024 09:57:05 +0200 Subject: [PATCH 63/86] Remove duplicate snippet. (#500) --- snippets/python-mode/iter | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 snippets/python-mode/iter diff --git a/snippets/python-mode/iter b/snippets/python-mode/iter deleted file mode 100644 index 181dcc985..000000000 --- a/snippets/python-mode/iter +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: __iter__ -# key: iter -# group: Special methods -# -- -def __iter__(self): - return ${1:iter($2)} From 1bf034887c4048c38266842686b7f9c8384f72e7 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Mon, 3 Jun 2024 09:57:36 +0200 Subject: [PATCH 64/86] python-mode: Adding missing __next__ special method. (#501) --- snippets/python-mode/__next__ | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 snippets/python-mode/__next__ diff --git a/snippets/python-mode/__next__ b/snippets/python-mode/__next__ new file mode 100644 index 000000000..2f22eff76 --- /dev/null +++ b/snippets/python-mode/__next__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __next__ +# key: _next +# group: Special methods +# -- +def __next__(self): + $0 From 469e9a6f0b15ae59814cf03293e6f9bd8b94b128 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Wed, 11 Sep 2024 09:58:14 +0200 Subject: [PATCH 65/86] python-mode: __missing__ was missing its key argument. (#502) cf. https://docs.python.org/3/reference/datamodel.html#object.__missing__ --- snippets/python-mode/__missing__ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/python-mode/__missing__ b/snippets/python-mode/__missing__ index bf7985150..2a239a077 100644 --- a/snippets/python-mode/__missing__ +++ b/snippets/python-mode/__missing__ @@ -3,5 +3,5 @@ # key: _missing # group: Special methods # -- -def __missing__(self): +def __missing__(self, key): return $0 From 355abc3ac774c9e80fe9e36b4c53f7f6dfae7bf3 Mon Sep 17 00:00:00 2001 From: Pieter Swinkels Date: Wed, 11 Sep 2024 10:00:58 +0200 Subject: [PATCH 66/86] Remove directive formatting from NOTE marker (#499) Before this commit, this snippet formatted a NOTE marker as a snippet directive, as `NOTE:`. As `NOTE` isn't a directive, this triggered a directive warning. --- snippets/python-mode/function_docstring | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/python-mode/function_docstring b/snippets/python-mode/function_docstring index 3e66c26fa..1c223839f 100644 --- a/snippets/python-mode/function_docstring +++ b/snippets/python-mode/function_docstring @@ -2,7 +2,7 @@ # name: function_docstring # key: fd # group: definitions -# NOTE: Use minimum indentation, because Emacs 25+ doesn't dedent docstrings. +# NOTE Use minimum indentation, because Emacs 25+ doesn't dedent docstrings. # -- def ${1:name}($2): \"\"\"$3 From f9d12a931f803cd1a24bb20113bd716db8c01b48 Mon Sep 17 00:00:00 2001 From: USAMI Kenta Date: Wed, 11 Sep 2024 17:01:18 +0900 Subject: [PATCH 67/86] Fix php-mode strict-types snippet (#498) --- snippets/php-mode/strict-types | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/snippets/php-mode/strict-types b/snippets/php-mode/strict-types index 69d64e2d8..b4d0ea4fb 100644 --- a/snippets/php-mode/strict-types +++ b/snippets/php-mode/strict-types @@ -1,7 +1,7 @@ --# -*- mode: snippet -*- --# contributor: USAMI Kenta --# name: declare(strict_types=1) --# key: strict_types --# group: definitions --# -- +# -*- mode: snippet -*- +# contributor: USAMI Kenta +# name: declare(strict_types=1) +# key: strict_types +# group: definitions +# -- declare(strict_types=1); From f03e5a56dacc42d62584f15ac7d723e4b504c7c7 Mon Sep 17 00:00:00 2001 From: Andrea Crotti Date: Mon, 14 Oct 2024 10:10:30 +0100 Subject: [PATCH 68/86] move Note to not make it parse --- snippets/dix-mode/s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/dix-mode/s b/snippets/dix-mode/s index 6e854ebc5..26fcfbaa1 100644 --- a/snippets/dix-mode/s +++ b/snippets/dix-mode/s @@ -3,7 +3,7 @@ # key: $0 \ No newline at end of file From fd9a6498fa37d0967251b7dd4168345e36472f52 Mon Sep 17 00:00:00 2001 From: Andrea Crotti Date: Mon, 14 Oct 2024 10:13:13 +0100 Subject: [PATCH 69/86] fix other warning --- snippets/python-mode/function_docstring | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/python-mode/function_docstring b/snippets/python-mode/function_docstring index 1c223839f..46ff97a39 100644 --- a/snippets/python-mode/function_docstring +++ b/snippets/python-mode/function_docstring @@ -2,8 +2,8 @@ # name: function_docstring # key: fd # group: definitions -# NOTE Use minimum indentation, because Emacs 25+ doesn't dedent docstrings. # -- +# NOTE: Use minimum indentation, because Emacs 25+ doesn't dedent docstrings. def ${1:name}($2): \"\"\"$3 ${2:$(python-args-to-docstring)} From 23bcbcd11f567a2659ae413c62c82892eb50a3f1 Mon Sep 17 00:00:00 2001 From: Andrea Crotti Date: Mon, 14 Oct 2024 10:49:20 +0100 Subject: [PATCH 70/86] actually avoid extra directives --- snippets/dix-mode/e-in-mono-section | 2 +- snippets/dix-mode/s | 4 ++-- snippets/python-mode/function_docstring | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/snippets/dix-mode/e-in-mono-section b/snippets/dix-mode/e-in-mono-section index 9d14896e3..ca539bcc9 100644 --- a/snippets/dix-mode/e-in-mono-section +++ b/snippets/dix-mode/e-in-mono-section @@ -3,7 +3,7 @@ # key: after leaving +# TODO, remove suffix from after leaving # -- ${1:$(dix-yas-lm-to-i)} $0 \ No newline at end of file diff --git a/snippets/dix-mode/s b/snippets/dix-mode/s index 26fcfbaa1..623b1c180 100644 --- a/snippets/dix-mode/s +++ b/snippets/dix-mode/s @@ -3,7 +3,7 @@ # key: $0 \ No newline at end of file diff --git a/snippets/python-mode/function_docstring b/snippets/python-mode/function_docstring index 46ff97a39..045c5176d 100644 --- a/snippets/python-mode/function_docstring +++ b/snippets/python-mode/function_docstring @@ -2,8 +2,8 @@ # name: function_docstring # key: fd # group: definitions +# Use minimum indentation, because Emacs 25+ doesn't dedent docstrings. # -- -# NOTE: Use minimum indentation, because Emacs 25+ doesn't dedent docstrings. def ${1:name}($2): \"\"\"$3 ${2:$(python-args-to-docstring)} From f1907ed38acc479e78d5c113810465e4d77d8604 Mon Sep 17 00:00:00 2001 From: Andrea Crotti Date: Sat, 7 Dec 2024 22:21:05 +0000 Subject: [PATCH 71/86] add uv script --- snippets/python-mode/uv-script | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 snippets/python-mode/uv-script diff --git a/snippets/python-mode/uv-script b/snippets/python-mode/uv-script new file mode 100644 index 000000000..c4dafcb73 --- /dev/null +++ b/snippets/python-mode/uv-script @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# name: uv-script +# key: uv +# -- +#!/usr/bin/uv run +# /// script +# dependencies = [ +# $1 +# ] +# /// +$0 \ No newline at end of file From 2ecf1bf59cecf03f71014a046146221975696290 Mon Sep 17 00:00:00 2001 From: Hong Xu Date: Tue, 25 Feb 2025 01:47:09 -0800 Subject: [PATCH 72/86] Update js-mode "for" to keep up with modern JS syntax (#514) "let" contains the scope of the variable to the loop, while "var" always declares global scope. Following up https://github.com/AndreaCrotti/yasnippet-snippets/pull/305 --- snippets/js-mode/for | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/js-mode/for b/snippets/js-mode/for index 1455afe75..b3be3a7d6 100644 --- a/snippets/js-mode/for +++ b/snippets/js-mode/for @@ -1,6 +1,6 @@ # -*- mode: snippet; require-final-newline: nil -*- # name: for # -- -for (var ${1:i} = ${2:0}; $1 < ${3:collection}.length; $1++) { +for (let ${1:i} = ${2:0}; $1 < ${3:collection}.length; $1++) { $0 } \ No newline at end of file From 03fd78b07bfba5a0c190b96b7cf441219e1d91bd Mon Sep 17 00:00:00 2001 From: normalc Date: Tue, 25 Feb 2025 04:47:57 -0500 Subject: [PATCH 73/86] Create `nix-ts-mode` sub-directory; Add additional snippets to `nix-mode` (#515) * nix-ts-mode: New snippet directory. * nix-mode: pkg_mkshell: New snippet This snippet is designed to quickly write out a `shell.nix` for Nix. * nix-mode: doCheck: New snippet. Adds a snippet to add the doCheck attribute to a package derivation that uses the current standard: a condition for cross-compilation or false. * nix-mode: passthru_update: New snippet. This adds a snippet for adding the `passthru.updateScript` attribute used in many nixpkgs derivations. --- snippets/nix-mode/doCheck | 8 ++++++++ snippets/nix-mode/passthru_update | 5 +++++ snippets/nix-mode/pkgs_mkshell | 13 +++++++++++++ snippets/nix-ts-mode/.yas-parents | 1 + 4 files changed, 27 insertions(+) create mode 100644 snippets/nix-mode/doCheck create mode 100644 snippets/nix-mode/passthru_update create mode 100644 snippets/nix-mode/pkgs_mkshell create mode 100644 snippets/nix-ts-mode/.yas-parents diff --git a/snippets/nix-mode/doCheck b/snippets/nix-mode/doCheck new file mode 100644 index 000000000..32316f114 --- /dev/null +++ b/snippets/nix-mode/doCheck @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: doCheck +# key: dc +# -- +doCheck = ${1:$$(yas-auto-next + (yas-choose-value + '("stdenv.buildPlatform.canExecute stdenv.hostPlatform;" + "false;")))} diff --git a/snippets/nix-mode/passthru_update b/snippets/nix-mode/passthru_update new file mode 100644 index 000000000..965cd1d00 --- /dev/null +++ b/snippets/nix-mode/passthru_update @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: passthru_update +# key: pu +# -- +passthru.updateScript = nix-update-script { }; diff --git a/snippets/nix-mode/pkgs_mkshell b/snippets/nix-mode/pkgs_mkshell new file mode 100644 index 000000000..4cbb25015 --- /dev/null +++ b/snippets/nix-mode/pkgs_mkshell @@ -0,0 +1,13 @@ +# -*- mode: snippet -*- +# name: pkgs_mkshell +# key: pms +# -- +pkgs.${1:$$(yas-auto-next (yas-choose-value '("mkShell" "mkShellNoCC")))} { + inputsFrom = [ $3 ]; + + packages = [ $2 ]; + + shellHook = '' + $4 + ''; +}$0 \ No newline at end of file diff --git a/snippets/nix-ts-mode/.yas-parents b/snippets/nix-ts-mode/.yas-parents new file mode 100644 index 000000000..b2ee4f8df --- /dev/null +++ b/snippets/nix-ts-mode/.yas-parents @@ -0,0 +1 @@ +nix-mode \ No newline at end of file From 9205da042a3338e304796ebddfa0b9bfce1bcca6 Mon Sep 17 00:00:00 2001 From: a2379 Date: Tue, 25 Feb 2025 04:48:33 -0500 Subject: [PATCH 74/86] prog-mode: Add snippets for SPDX-* comments (#512) --- snippets/prog-mode/.yas-setup.el | 7 +++++++ snippets/prog-mode/spdxcopyright | 6 ++++++ snippets/prog-mode/spdxlicense | 6 ++++++ 3 files changed, 19 insertions(+) create mode 100644 snippets/prog-mode/spdxcopyright create mode 100644 snippets/prog-mode/spdxlicense diff --git a/snippets/prog-mode/.yas-setup.el b/snippets/prog-mode/.yas-setup.el index 7d6127daa..9aebceb97 100644 --- a/snippets/prog-mode/.yas-setup.el +++ b/snippets/prog-mode/.yas-setup.el @@ -29,6 +29,13 @@ "This function returns `comment-start' trimmed by whitespaces." (yas-s-trim comment-start)) +(defun yas-trimmed-add-comment () + "This function returns `comment-start' trimmed by whitespaces. It uses +`comment-add' to determine how many comment symbols to insert." + (yas-s-trim (apply #'concat (mapcar (lambda (x) + comment-start) + (number-sequence 0 comment-add))))) + (defun yas-trimmed-comment-end () "This function returns `comment-end' trimmed by whitespaces if `comment-end' is not empty. Otherwise the reversed output of diff --git a/snippets/prog-mode/spdxcopyright b/snippets/prog-mode/spdxcopyright new file mode 100644 index 000000000..e2869b53a --- /dev/null +++ b/snippets/prog-mode/spdxcopyright @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# contributor: Antero Mejr +# name: spdxcopyright +# key: spc +# -- +`(yas-trimmed-add-comment)` SPDX-FileCopyrightText: $0`comment-end` \ No newline at end of file diff --git a/snippets/prog-mode/spdxlicense b/snippets/prog-mode/spdxlicense new file mode 100644 index 000000000..0d802bd46 --- /dev/null +++ b/snippets/prog-mode/spdxlicense @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# contributor: Antero Mejr +# name: spdxlicense +# key: spl +# -- +`(yas-trimmed-add-comment)` SPDX-License-Identifier: $0`comment-end` \ No newline at end of file From d17a984429f80c3ea6cd26e8c01720346124f03c Mon Sep 17 00:00:00 2001 From: Ben Bellick <36523439+benbellick@users.noreply.github.com> Date: Tue, 25 Feb 2025 03:48:50 -0600 Subject: [PATCH 75/86] Update reason-mode function snippet (#510) --- snippets/reason-mode/function | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/reason-mode/function b/snippets/reason-mode/function index 293371e4a..b310b5e3b 100644 --- a/snippets/reason-mode/function +++ b/snippets/reason-mode/function @@ -2,4 +2,4 @@ # name: function # key: func # -- -(${1:paramters}) -> $0 \ No newline at end of file +(${1:paramters}) => $0 From 95b813f758d281fb34ada8410a92b0ac860cdffe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Diogo=20Duarte?= Date: Tue, 25 Feb 2025 09:49:50 +0000 Subject: [PATCH 76/86] Added easycrypt-mode snippets (#503) * initial easycrypt mode * Added emacs files in gitignore * Added easycrypt snippets * Removed backup and autosave files --- .gitignore | 3 +++ snippets/easycrypt-mode/lookup/locate | 7 +++++++ snippets/easycrypt-mode/lookup/print | 7 +++++++ snippets/easycrypt-mode/lookup/search | 7 +++++++ snippets/easycrypt-mode/misc/abbrev | 8 ++++++++ snippets/easycrypt-mode/misc/and1 | 8 ++++++++ snippets/easycrypt-mode/misc/and2 | 8 ++++++++ snippets/easycrypt-mode/misc/comment | 8 ++++++++ snippets/easycrypt-mode/misc/forall | 8 ++++++++ snippets/easycrypt-mode/misc/from | 6 ++++++ snippets/easycrypt-mode/misc/from-jasmin | 7 +++++++ snippets/easycrypt-mode/misc/fun | 8 ++++++++ snippets/easycrypt-mode/misc/ge0 | 8 ++++++++ snippets/easycrypt-mode/misc/geq0 | 6 ++++++ snippets/easycrypt-mode/misc/hint-simplify | 8 ++++++++ snippets/easycrypt-mode/misc/if | 8 ++++++++ snippets/easycrypt-mode/misc/import | 7 +++++++ snippets/easycrypt-mode/misc/let-in | 8 ++++++++ snippets/easycrypt-mode/misc/list | 8 ++++++++ snippets/easycrypt-mode/misc/new-comment | 6 ++++++ snippets/easycrypt-mode/misc/or1 | 8 ++++++++ snippets/easycrypt-mode/misc/or2 | 8 ++++++++ snippets/easycrypt-mode/misc/param | 8 ++++++++ snippets/easycrypt-mode/misc/pred | 7 +++++++ snippets/easycrypt-mode/misc/probability | 8 ++++++++ snippets/easycrypt-mode/misc/probability-mem | 8 ++++++++ snippets/easycrypt-mode/misc/range | 6 ++++++ snippets/easycrypt-mode/misc/range-exclusive | 8 ++++++++ .../misc/range-exclusive-inclusive | 8 ++++++++ snippets/easycrypt-mode/misc/range-inclusive | 8 ++++++++ .../misc/range-inclusive-exclusive | 8 ++++++++ snippets/easycrypt-mode/misc/require-import | 7 +++++++ snippets/easycrypt-mode/modules/module | 10 ++++++++++ snippets/easycrypt-mode/modules/module-instance | 8 ++++++++ snippets/easycrypt-mode/modules/module-type | 10 ++++++++++ .../easycrypt-mode/modules/module-with-params | 8 ++++++++ .../modules/module-with-params-return | 10 ++++++++++ .../easycrypt-mode/modules/module-with-return | 10 ++++++++++ snippets/easycrypt-mode/procedures/assign | 8 ++++++++ .../easycrypt-mode/procedures/decrement-counter | 8 ++++++++ snippets/easycrypt-mode/procedures/if-else-proc | 12 ++++++++++++ snippets/easycrypt-mode/procedures/if-proc | 10 ++++++++++ .../easycrypt-mode/procedures/increment-counter | 8 ++++++++ snippets/easycrypt-mode/procedures/init-var | 8 ++++++++ snippets/easycrypt-mode/procedures/new-var | 8 ++++++++ snippets/easycrypt-mode/procedures/proc | 11 +++++++++++ snippets/easycrypt-mode/procedures/proc-abstract | 8 ++++++++ snippets/easycrypt-mode/procedures/proc-call | 8 ++++++++ .../easycrypt-mode/procedures/proc-no-return | 10 ++++++++++ snippets/easycrypt-mode/procedures/sample | 8 ++++++++ snippets/easycrypt-mode/procedures/while-proc | 11 +++++++++++ snippets/easycrypt-mode/propositions/axiom | 7 +++++++ snippets/easycrypt-mode/propositions/axiomatized | 7 +++++++ snippets/easycrypt-mode/propositions/declare | 7 +++++++ snippets/easycrypt-mode/propositions/equiv | 13 +++++++++++++ snippets/easycrypt-mode/propositions/hoare | 13 +++++++++++++ snippets/easycrypt-mode/propositions/lemma | 11 +++++++++++ .../easycrypt-mode/propositions/lemma_equality | 11 +++++++++++ snippets/easycrypt-mode/propositions/lemma_equiv | 16 ++++++++++++++++ snippets/easycrypt-mode/propositions/lemma_hoare | 15 +++++++++++++++ .../easycrypt-mode/propositions/lemma_islossless | 11 +++++++++++ .../easycrypt-mode/propositions/lemma_phoare | 15 +++++++++++++++ snippets/easycrypt-mode/propositions/local | 7 +++++++ snippets/easycrypt-mode/propositions/op-as | 7 +++++++ .../easycrypt-mode/propositions/op-axiomatixed | 7 +++++++ .../easycrypt-mode/propositions/op-barebones | 7 +++++++ .../easycrypt-mode/propositions/op-no-return | 7 +++++++ snippets/easycrypt-mode/propositions/phoare | 14 ++++++++++++++ snippets/easycrypt-mode/propositions/small-lemma | 7 +++++++ snippets/easycrypt-mode/tactics/alias | 8 ++++++++ snippets/easycrypt-mode/tactics/alias-with | 8 ++++++++ snippets/easycrypt-mode/tactics/alias1 | 8 ++++++++ snippets/easycrypt-mode/tactics/alias1-with | 8 ++++++++ snippets/easycrypt-mode/tactics/alias2 | 8 ++++++++ snippets/easycrypt-mode/tactics/alias2-with | 8 ++++++++ snippets/easycrypt-mode/tactics/aliaswith | 6 ++++++ snippets/easycrypt-mode/tactics/aliaswith1 | 6 ++++++ snippets/easycrypt-mode/tactics/aliaswith2 | 6 ++++++ snippets/easycrypt-mode/tactics/apply-args | 8 ++++++++ snippets/easycrypt-mode/tactics/apply-in | 8 ++++++++ snippets/easycrypt-mode/tactics/apply-proof-term | 8 ++++++++ snippets/easycrypt-mode/tactics/async-while | 13 +++++++++++++ snippets/easycrypt-mode/tactics/auto | 7 +++++++ snippets/easycrypt-mode/tactics/auto.yasnippet | 7 +++++++ snippets/easycrypt-mode/tactics/bad-smt | 8 ++++++++ snippets/easycrypt-mode/tactics/byequiv | 8 ++++++++ snippets/easycrypt-mode/tactics/byphoare | 8 ++++++++ snippets/easycrypt-mode/tactics/bypr | 8 ++++++++ snippets/easycrypt-mode/tactics/call | 8 ++++++++ snippets/easycrypt-mode/tactics/call-invar | 8 ++++++++ snippets/easycrypt-mode/tactics/call-invar2 | 8 ++++++++ snippets/easycrypt-mode/tactics/call-invar3 | 8 ++++++++ snippets/easycrypt-mode/tactics/call-true | 8 ++++++++ snippets/easycrypt-mode/tactics/call-true-true | 8 ++++++++ snippets/easycrypt-mode/tactics/call1 | 8 ++++++++ snippets/easycrypt-mode/tactics/call1-invar | 8 ++++++++ snippets/easycrypt-mode/tactics/call1-true | 8 ++++++++ snippets/easycrypt-mode/tactics/call1-true-true | 8 ++++++++ snippets/easycrypt-mode/tactics/call2 | 8 ++++++++ snippets/easycrypt-mode/tactics/call2-invar | 8 ++++++++ snippets/easycrypt-mode/tactics/call2-true | 8 ++++++++ snippets/easycrypt-mode/tactics/call2-true-true | 8 ++++++++ snippets/easycrypt-mode/tactics/case | 8 ++++++++ snippets/easycrypt-mode/tactics/case-move | 8 ++++++++ snippets/easycrypt-mode/tactics/cfold | 8 ++++++++ snippets/easycrypt-mode/tactics/cfold-from-to | 8 ++++++++ snippets/easycrypt-mode/tactics/cfold-from-to1 | 8 ++++++++ snippets/easycrypt-mode/tactics/cfold-from-to2 | 8 ++++++++ snippets/easycrypt-mode/tactics/cfold1 | 8 ++++++++ snippets/easycrypt-mode/tactics/cfold2 | 8 ++++++++ snippets/easycrypt-mode/tactics/cfold_from_to | 6 ++++++ snippets/easycrypt-mode/tactics/cfold_from_to1 | 6 ++++++ snippets/easycrypt-mode/tactics/cfold_from_to2 | 6 ++++++ snippets/easycrypt-mode/tactics/clear | 8 ++++++++ snippets/easycrypt-mode/tactics/conseq | 8 ++++++++ snippets/easycrypt-mode/tactics/conseq-invar | 8 ++++++++ snippets/easycrypt-mode/tactics/conseq-true | 8 ++++++++ snippets/easycrypt-mode/tactics/conseq-true-true | 8 ++++++++ snippets/easycrypt-mode/tactics/conseq1 | 8 ++++++++ snippets/easycrypt-mode/tactics/conseq1-invar | 8 ++++++++ snippets/easycrypt-mode/tactics/conseq1-true | 8 ++++++++ .../easycrypt-mode/tactics/conseq1-true-true | 8 ++++++++ snippets/easycrypt-mode/tactics/conseq2 | 8 ++++++++ snippets/easycrypt-mode/tactics/conseq2-invar | 8 ++++++++ snippets/easycrypt-mode/tactics/conseq2-true | 8 ++++++++ .../easycrypt-mode/tactics/conseq2-true-true | 8 ++++++++ snippets/easycrypt-mode/tactics/do-n-times | 8 ++++++++ snippets/easycrypt-mode/tactics/do-split | 9 +++++++++ snippets/easycrypt-mode/tactics/dosplit | 7 +++++++ snippets/easycrypt-mode/tactics/ecall | 8 ++++++++ snippets/easycrypt-mode/tactics/ecall-wp | 8 ++++++++ snippets/easycrypt-mode/tactics/elim-proof-term | 8 ++++++++ snippets/easycrypt-mode/tactics/elim-var | 8 ++++++++ snippets/easycrypt-mode/tactics/exists | 8 ++++++++ snippets/easycrypt-mode/tactics/exists-astreix1 | 8 ++++++++ snippets/easycrypt-mode/tactics/exists-astrix | 8 ++++++++ snippets/easycrypt-mode/tactics/first-last | 8 ++++++++ snippets/easycrypt-mode/tactics/first-n-last | 7 +++++++ snippets/easycrypt-mode/tactics/firstn | 8 ++++++++ snippets/easycrypt-mode/tactics/fission | 8 ++++++++ snippets/easycrypt-mode/tactics/fission1 | 8 ++++++++ snippets/easycrypt-mode/tactics/fission2 | 8 ++++++++ snippets/easycrypt-mode/tactics/fusion | 8 ++++++++ snippets/easycrypt-mode/tactics/fusion1 | 8 ++++++++ snippets/easycrypt-mode/tactics/fusion2 | 8 ++++++++ snippets/easycrypt-mode/tactics/have-define | 8 ++++++++ snippets/easycrypt-mode/tactics/have-introduce | 8 ++++++++ snippets/easycrypt-mode/tactics/have-write-left | 8 ++++++++ .../easycrypt-mode/tactics/have-write-left-eq | 8 ++++++++ snippets/easycrypt-mode/tactics/have-write-right | 8 ++++++++ .../easycrypt-mode/tactics/have-write-right-eq | 8 ++++++++ snippets/easycrypt-mode/tactics/if | 8 ++++++++ snippets/easycrypt-mode/tactics/if1 | 8 ++++++++ snippets/easycrypt-mode/tactics/if2 | 8 ++++++++ snippets/easycrypt-mode/tactics/implies | 7 +++++++ snippets/easycrypt-mode/tactics/implies-brackets | 7 +++++++ snippets/easycrypt-mode/tactics/inline | 6 ++++++ snippets/easycrypt-mode/tactics/inline1 | 8 ++++++++ snippets/easycrypt-mode/tactics/inline2 | 8 ++++++++ snippets/easycrypt-mode/tactics/last | 8 ++++++++ snippets/easycrypt-mode/tactics/last-first | 8 ++++++++ snippets/easycrypt-mode/tactics/last-n-first | 8 ++++++++ snippets/easycrypt-mode/tactics/lastn | 8 ++++++++ snippets/easycrypt-mode/tactics/move-1 | 8 ++++++++ snippets/easycrypt-mode/tactics/move-1m2 | 8 ++++++++ snippets/easycrypt-mode/tactics/move-2 | 8 ++++++++ .../easycrypt-mode/tactics/move-from-assumption | 8 ++++++++ snippets/easycrypt-mode/tactics/move-hr | 8 ++++++++ snippets/easycrypt-mode/tactics/move-lemma-args | 8 ++++++++ .../easycrypt-mode/tactics/move-to-assumption | 8 ++++++++ snippets/easycrypt-mode/tactics/pose | 8 ++++++++ snippets/easycrypt-mode/tactics/proc-simplify | 8 ++++++++ snippets/easycrypt-mode/tactics/proc-up-to-bad | 8 ++++++++ snippets/easycrypt-mode/tactics/proc-up-to-bad2 | 8 ++++++++ snippets/easycrypt-mode/tactics/rcondf1 | 8 ++++++++ snippets/easycrypt-mode/tactics/rcondf2 | 8 ++++++++ snippets/easycrypt-mode/tactics/rcondt-rl | 6 ++++++ snippets/easycrypt-mode/tactics/rcondt1 | 8 ++++++++ snippets/easycrypt-mode/tactics/rcondt2 | 8 ++++++++ snippets/easycrypt-mode/tactics/repeat-from-to | 8 ++++++++ snippets/easycrypt-mode/tactics/rewrite | 8 ++++++++ snippets/easycrypt-mode/tactics/rewrite-crush | 8 ++++++++ .../easycrypt-mode/tactics/rewrite-expand-list | 8 ++++++++ .../easycrypt-mode/tactics/rewrite-fun-backwards | 8 ++++++++ snippets/easycrypt-mode/tactics/rewrite-in | 8 ++++++++ .../tactics/rewrite-lemma-forwards-args | 8 ++++++++ .../easycrypt-mode/tactics/rewrite-proof-term-in | 8 ++++++++ snippets/easycrypt-mode/tactics/rnd-f | 8 ++++++++ snippets/easycrypt-mode/tactics/rnd-fg | 8 ++++++++ snippets/easycrypt-mode/tactics/rnd1 | 8 ++++++++ snippets/easycrypt-mode/tactics/rnd2 | 7 +++++++ snippets/easycrypt-mode/tactics/seq | 8 ++++++++ snippets/easycrypt-mode/tactics/sim | 8 ++++++++ snippets/easycrypt-mode/tactics/smt | 8 ++++++++ snippets/easycrypt-mode/tactics/splitwhile | 8 ++++++++ snippets/easycrypt-mode/tactics/splitwhile1 | 8 ++++++++ snippets/easycrypt-mode/tactics/splitwhile2 | 8 ++++++++ snippets/easycrypt-mode/tactics/transitivity | 10 ++++++++++ .../easycrypt-mode/tactics/transitivity-code | 10 ++++++++++ snippets/easycrypt-mode/tactics/unroll-equiv | 8 ++++++++ snippets/easycrypt-mode/tactics/unroll-while | 8 ++++++++ snippets/easycrypt-mode/tactics/while | 10 ++++++++++ snippets/easycrypt-mode/tactics/while-true | 8 ++++++++ snippets/easycrypt-mode/tactics/while1 | 8 ++++++++ snippets/easycrypt-mode/tactics/while2 | 7 +++++++ snippets/easycrypt-mode/theories/abstract-theory | 11 +++++++++++ snippets/easycrypt-mode/theories/clone-as | 8 ++++++++ snippets/easycrypt-mode/theories/clone-as-with | 8 ++++++++ snippets/easycrypt-mode/theories/clone-import | 8 ++++++++ snippets/easycrypt-mode/theories/clone-include | 8 ++++++++ snippets/easycrypt-mode/theories/clone-no-with | 6 ++++++ snippets/easycrypt-mode/theories/rename-as | 8 ++++++++ snippets/easycrypt-mode/theories/section | 10 ++++++++++ snippets/easycrypt-mode/theories/theory | 11 +++++++++++ snippets/easycrypt-mode/theories/type | 8 ++++++++ snippets/easycrypt-mode/theories/with | 8 ++++++++ 216 files changed, 1762 insertions(+) create mode 100644 snippets/easycrypt-mode/lookup/locate create mode 100644 snippets/easycrypt-mode/lookup/print create mode 100644 snippets/easycrypt-mode/lookup/search create mode 100644 snippets/easycrypt-mode/misc/abbrev create mode 100644 snippets/easycrypt-mode/misc/and1 create mode 100644 snippets/easycrypt-mode/misc/and2 create mode 100644 snippets/easycrypt-mode/misc/comment create mode 100644 snippets/easycrypt-mode/misc/forall create mode 100644 snippets/easycrypt-mode/misc/from create mode 100644 snippets/easycrypt-mode/misc/from-jasmin create mode 100644 snippets/easycrypt-mode/misc/fun create mode 100644 snippets/easycrypt-mode/misc/ge0 create mode 100644 snippets/easycrypt-mode/misc/geq0 create mode 100644 snippets/easycrypt-mode/misc/hint-simplify create mode 100644 snippets/easycrypt-mode/misc/if create mode 100644 snippets/easycrypt-mode/misc/import create mode 100644 snippets/easycrypt-mode/misc/let-in create mode 100644 snippets/easycrypt-mode/misc/list create mode 100644 snippets/easycrypt-mode/misc/new-comment create mode 100644 snippets/easycrypt-mode/misc/or1 create mode 100644 snippets/easycrypt-mode/misc/or2 create mode 100644 snippets/easycrypt-mode/misc/param create mode 100644 snippets/easycrypt-mode/misc/pred create mode 100644 snippets/easycrypt-mode/misc/probability create mode 100644 snippets/easycrypt-mode/misc/probability-mem create mode 100644 snippets/easycrypt-mode/misc/range create mode 100644 snippets/easycrypt-mode/misc/range-exclusive create mode 100644 snippets/easycrypt-mode/misc/range-exclusive-inclusive create mode 100644 snippets/easycrypt-mode/misc/range-inclusive create mode 100644 snippets/easycrypt-mode/misc/range-inclusive-exclusive create mode 100644 snippets/easycrypt-mode/misc/require-import create mode 100644 snippets/easycrypt-mode/modules/module create mode 100644 snippets/easycrypt-mode/modules/module-instance create mode 100644 snippets/easycrypt-mode/modules/module-type create mode 100644 snippets/easycrypt-mode/modules/module-with-params create mode 100644 snippets/easycrypt-mode/modules/module-with-params-return create mode 100644 snippets/easycrypt-mode/modules/module-with-return create mode 100644 snippets/easycrypt-mode/procedures/assign create mode 100644 snippets/easycrypt-mode/procedures/decrement-counter create mode 100644 snippets/easycrypt-mode/procedures/if-else-proc create mode 100644 snippets/easycrypt-mode/procedures/if-proc create mode 100644 snippets/easycrypt-mode/procedures/increment-counter create mode 100644 snippets/easycrypt-mode/procedures/init-var create mode 100644 snippets/easycrypt-mode/procedures/new-var create mode 100644 snippets/easycrypt-mode/procedures/proc create mode 100644 snippets/easycrypt-mode/procedures/proc-abstract create mode 100644 snippets/easycrypt-mode/procedures/proc-call create mode 100644 snippets/easycrypt-mode/procedures/proc-no-return create mode 100644 snippets/easycrypt-mode/procedures/sample create mode 100644 snippets/easycrypt-mode/procedures/while-proc create mode 100644 snippets/easycrypt-mode/propositions/axiom create mode 100644 snippets/easycrypt-mode/propositions/axiomatized create mode 100644 snippets/easycrypt-mode/propositions/declare create mode 100644 snippets/easycrypt-mode/propositions/equiv create mode 100644 snippets/easycrypt-mode/propositions/hoare create mode 100644 snippets/easycrypt-mode/propositions/lemma create mode 100644 snippets/easycrypt-mode/propositions/lemma_equality create mode 100644 snippets/easycrypt-mode/propositions/lemma_equiv create mode 100644 snippets/easycrypt-mode/propositions/lemma_hoare create mode 100644 snippets/easycrypt-mode/propositions/lemma_islossless create mode 100644 snippets/easycrypt-mode/propositions/lemma_phoare create mode 100644 snippets/easycrypt-mode/propositions/local create mode 100644 snippets/easycrypt-mode/propositions/op-as create mode 100644 snippets/easycrypt-mode/propositions/op-axiomatixed create mode 100644 snippets/easycrypt-mode/propositions/op-barebones create mode 100644 snippets/easycrypt-mode/propositions/op-no-return create mode 100644 snippets/easycrypt-mode/propositions/phoare create mode 100644 snippets/easycrypt-mode/propositions/small-lemma create mode 100644 snippets/easycrypt-mode/tactics/alias create mode 100644 snippets/easycrypt-mode/tactics/alias-with create mode 100644 snippets/easycrypt-mode/tactics/alias1 create mode 100644 snippets/easycrypt-mode/tactics/alias1-with create mode 100644 snippets/easycrypt-mode/tactics/alias2 create mode 100644 snippets/easycrypt-mode/tactics/alias2-with create mode 100644 snippets/easycrypt-mode/tactics/aliaswith create mode 100644 snippets/easycrypt-mode/tactics/aliaswith1 create mode 100644 snippets/easycrypt-mode/tactics/aliaswith2 create mode 100644 snippets/easycrypt-mode/tactics/apply-args create mode 100644 snippets/easycrypt-mode/tactics/apply-in create mode 100644 snippets/easycrypt-mode/tactics/apply-proof-term create mode 100644 snippets/easycrypt-mode/tactics/async-while create mode 100644 snippets/easycrypt-mode/tactics/auto create mode 100644 snippets/easycrypt-mode/tactics/auto.yasnippet create mode 100644 snippets/easycrypt-mode/tactics/bad-smt create mode 100644 snippets/easycrypt-mode/tactics/byequiv create mode 100644 snippets/easycrypt-mode/tactics/byphoare create mode 100644 snippets/easycrypt-mode/tactics/bypr create mode 100644 snippets/easycrypt-mode/tactics/call create mode 100644 snippets/easycrypt-mode/tactics/call-invar create mode 100644 snippets/easycrypt-mode/tactics/call-invar2 create mode 100644 snippets/easycrypt-mode/tactics/call-invar3 create mode 100644 snippets/easycrypt-mode/tactics/call-true create mode 100644 snippets/easycrypt-mode/tactics/call-true-true create mode 100644 snippets/easycrypt-mode/tactics/call1 create mode 100644 snippets/easycrypt-mode/tactics/call1-invar create mode 100644 snippets/easycrypt-mode/tactics/call1-true create mode 100644 snippets/easycrypt-mode/tactics/call1-true-true create mode 100644 snippets/easycrypt-mode/tactics/call2 create mode 100644 snippets/easycrypt-mode/tactics/call2-invar create mode 100644 snippets/easycrypt-mode/tactics/call2-true create mode 100644 snippets/easycrypt-mode/tactics/call2-true-true create mode 100644 snippets/easycrypt-mode/tactics/case create mode 100644 snippets/easycrypt-mode/tactics/case-move create mode 100644 snippets/easycrypt-mode/tactics/cfold create mode 100644 snippets/easycrypt-mode/tactics/cfold-from-to create mode 100644 snippets/easycrypt-mode/tactics/cfold-from-to1 create mode 100644 snippets/easycrypt-mode/tactics/cfold-from-to2 create mode 100644 snippets/easycrypt-mode/tactics/cfold1 create mode 100644 snippets/easycrypt-mode/tactics/cfold2 create mode 100644 snippets/easycrypt-mode/tactics/cfold_from_to create mode 100644 snippets/easycrypt-mode/tactics/cfold_from_to1 create mode 100644 snippets/easycrypt-mode/tactics/cfold_from_to2 create mode 100644 snippets/easycrypt-mode/tactics/clear create mode 100644 snippets/easycrypt-mode/tactics/conseq create mode 100644 snippets/easycrypt-mode/tactics/conseq-invar create mode 100644 snippets/easycrypt-mode/tactics/conseq-true create mode 100644 snippets/easycrypt-mode/tactics/conseq-true-true create mode 100644 snippets/easycrypt-mode/tactics/conseq1 create mode 100644 snippets/easycrypt-mode/tactics/conseq1-invar create mode 100644 snippets/easycrypt-mode/tactics/conseq1-true create mode 100644 snippets/easycrypt-mode/tactics/conseq1-true-true create mode 100644 snippets/easycrypt-mode/tactics/conseq2 create mode 100644 snippets/easycrypt-mode/tactics/conseq2-invar create mode 100644 snippets/easycrypt-mode/tactics/conseq2-true create mode 100644 snippets/easycrypt-mode/tactics/conseq2-true-true create mode 100644 snippets/easycrypt-mode/tactics/do-n-times create mode 100644 snippets/easycrypt-mode/tactics/do-split create mode 100644 snippets/easycrypt-mode/tactics/dosplit create mode 100644 snippets/easycrypt-mode/tactics/ecall create mode 100644 snippets/easycrypt-mode/tactics/ecall-wp create mode 100644 snippets/easycrypt-mode/tactics/elim-proof-term create mode 100644 snippets/easycrypt-mode/tactics/elim-var create mode 100644 snippets/easycrypt-mode/tactics/exists create mode 100644 snippets/easycrypt-mode/tactics/exists-astreix1 create mode 100644 snippets/easycrypt-mode/tactics/exists-astrix create mode 100644 snippets/easycrypt-mode/tactics/first-last create mode 100644 snippets/easycrypt-mode/tactics/first-n-last create mode 100644 snippets/easycrypt-mode/tactics/firstn create mode 100644 snippets/easycrypt-mode/tactics/fission create mode 100644 snippets/easycrypt-mode/tactics/fission1 create mode 100644 snippets/easycrypt-mode/tactics/fission2 create mode 100644 snippets/easycrypt-mode/tactics/fusion create mode 100644 snippets/easycrypt-mode/tactics/fusion1 create mode 100644 snippets/easycrypt-mode/tactics/fusion2 create mode 100644 snippets/easycrypt-mode/tactics/have-define create mode 100644 snippets/easycrypt-mode/tactics/have-introduce create mode 100644 snippets/easycrypt-mode/tactics/have-write-left create mode 100644 snippets/easycrypt-mode/tactics/have-write-left-eq create mode 100644 snippets/easycrypt-mode/tactics/have-write-right create mode 100644 snippets/easycrypt-mode/tactics/have-write-right-eq create mode 100644 snippets/easycrypt-mode/tactics/if create mode 100644 snippets/easycrypt-mode/tactics/if1 create mode 100644 snippets/easycrypt-mode/tactics/if2 create mode 100644 snippets/easycrypt-mode/tactics/implies create mode 100644 snippets/easycrypt-mode/tactics/implies-brackets create mode 100644 snippets/easycrypt-mode/tactics/inline create mode 100644 snippets/easycrypt-mode/tactics/inline1 create mode 100644 snippets/easycrypt-mode/tactics/inline2 create mode 100644 snippets/easycrypt-mode/tactics/last create mode 100644 snippets/easycrypt-mode/tactics/last-first create mode 100644 snippets/easycrypt-mode/tactics/last-n-first create mode 100644 snippets/easycrypt-mode/tactics/lastn create mode 100644 snippets/easycrypt-mode/tactics/move-1 create mode 100644 snippets/easycrypt-mode/tactics/move-1m2 create mode 100644 snippets/easycrypt-mode/tactics/move-2 create mode 100644 snippets/easycrypt-mode/tactics/move-from-assumption create mode 100644 snippets/easycrypt-mode/tactics/move-hr create mode 100644 snippets/easycrypt-mode/tactics/move-lemma-args create mode 100644 snippets/easycrypt-mode/tactics/move-to-assumption create mode 100644 snippets/easycrypt-mode/tactics/pose create mode 100644 snippets/easycrypt-mode/tactics/proc-simplify create mode 100644 snippets/easycrypt-mode/tactics/proc-up-to-bad create mode 100644 snippets/easycrypt-mode/tactics/proc-up-to-bad2 create mode 100644 snippets/easycrypt-mode/tactics/rcondf1 create mode 100644 snippets/easycrypt-mode/tactics/rcondf2 create mode 100644 snippets/easycrypt-mode/tactics/rcondt-rl create mode 100644 snippets/easycrypt-mode/tactics/rcondt1 create mode 100644 snippets/easycrypt-mode/tactics/rcondt2 create mode 100644 snippets/easycrypt-mode/tactics/repeat-from-to create mode 100644 snippets/easycrypt-mode/tactics/rewrite create mode 100644 snippets/easycrypt-mode/tactics/rewrite-crush create mode 100644 snippets/easycrypt-mode/tactics/rewrite-expand-list create mode 100644 snippets/easycrypt-mode/tactics/rewrite-fun-backwards create mode 100644 snippets/easycrypt-mode/tactics/rewrite-in create mode 100644 snippets/easycrypt-mode/tactics/rewrite-lemma-forwards-args create mode 100644 snippets/easycrypt-mode/tactics/rewrite-proof-term-in create mode 100644 snippets/easycrypt-mode/tactics/rnd-f create mode 100644 snippets/easycrypt-mode/tactics/rnd-fg create mode 100644 snippets/easycrypt-mode/tactics/rnd1 create mode 100644 snippets/easycrypt-mode/tactics/rnd2 create mode 100644 snippets/easycrypt-mode/tactics/seq create mode 100644 snippets/easycrypt-mode/tactics/sim create mode 100644 snippets/easycrypt-mode/tactics/smt create mode 100644 snippets/easycrypt-mode/tactics/splitwhile create mode 100644 snippets/easycrypt-mode/tactics/splitwhile1 create mode 100644 snippets/easycrypt-mode/tactics/splitwhile2 create mode 100644 snippets/easycrypt-mode/tactics/transitivity create mode 100644 snippets/easycrypt-mode/tactics/transitivity-code create mode 100644 snippets/easycrypt-mode/tactics/unroll-equiv create mode 100644 snippets/easycrypt-mode/tactics/unroll-while create mode 100644 snippets/easycrypt-mode/tactics/while create mode 100644 snippets/easycrypt-mode/tactics/while-true create mode 100644 snippets/easycrypt-mode/tactics/while1 create mode 100644 snippets/easycrypt-mode/tactics/while2 create mode 100644 snippets/easycrypt-mode/theories/abstract-theory create mode 100644 snippets/easycrypt-mode/theories/clone-as create mode 100644 snippets/easycrypt-mode/theories/clone-as-with create mode 100644 snippets/easycrypt-mode/theories/clone-import create mode 100644 snippets/easycrypt-mode/theories/clone-include create mode 100644 snippets/easycrypt-mode/theories/clone-no-with create mode 100644 snippets/easycrypt-mode/theories/rename-as create mode 100644 snippets/easycrypt-mode/theories/section create mode 100644 snippets/easycrypt-mode/theories/theory create mode 100644 snippets/easycrypt-mode/theories/type create mode 100644 snippets/easycrypt-mode/theories/with diff --git a/.gitignore b/.gitignore index 02ac900f2..8540a89c7 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,6 @@ /report/.nrepl-port /.clj-kondo/ /.lsp/ +*~ +\#*\# +.\#* diff --git a/snippets/easycrypt-mode/lookup/locate b/snippets/easycrypt-mode/lookup/locate new file mode 100644 index 000000000..3115f2d47 --- /dev/null +++ b/snippets/easycrypt-mode/lookup/locate @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# key: L +# group: lookup +# name: locate +# expand-env: ((yas-indent-line 'fixed)) +# -- +locate $1. diff --git a/snippets/easycrypt-mode/lookup/print b/snippets/easycrypt-mode/lookup/print new file mode 100644 index 000000000..b0b3490ba --- /dev/null +++ b/snippets/easycrypt-mode/lookup/print @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# key: P +# group: lookup +# name: print +# expand-env: ((yas-indent-line 'fixed)) +# -- +print $1. diff --git a/snippets/easycrypt-mode/lookup/search b/snippets/easycrypt-mode/lookup/search new file mode 100644 index 000000000..6f7647854 --- /dev/null +++ b/snippets/easycrypt-mode/lookup/search @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# key: S +# group: lookup +# name: search +# expand-env: ((yas-indent-line 'fixed)) +# -- +search $1. \ No newline at end of file diff --git a/snippets/easycrypt-mode/misc/abbrev b/snippets/easycrypt-mode/misc/abbrev new file mode 100644 index 000000000..9a4300217 --- /dev/null +++ b/snippets/easycrypt-mode/misc/abbrev @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: abbrev +# key: abbrev +# expand-env: ((yas-indent-line 'fixed)) +# -- +abbrev $1 = $2. \ No newline at end of file diff --git a/snippets/easycrypt-mode/misc/and1 b/snippets/easycrypt-mode/misc/and1 new file mode 100644 index 000000000..50a04363b --- /dev/null +++ b/snippets/easycrypt-mode/misc/and1 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: and1 +# key: and1 +# expand-env: ((yas-indent-line 'fixed)) +# -- +$1 /\ $2 \ No newline at end of file diff --git a/snippets/easycrypt-mode/misc/and2 b/snippets/easycrypt-mode/misc/and2 new file mode 100644 index 000000000..1f6f29d29 --- /dev/null +++ b/snippets/easycrypt-mode/misc/and2 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: and2 +# key: and2 +# expand-env: ((yas-indent-line 'fixed)) +# -- +$1 && $2 \ No newline at end of file diff --git a/snippets/easycrypt-mode/misc/comment b/snippets/easycrypt-mode/misc/comment new file mode 100644 index 000000000..5ab8f8afb --- /dev/null +++ b/snippets/easycrypt-mode/misc/comment @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: comment +# key: comment +# expand-env: ((yas-indent-line 'fixed)) +# -- +(* $1 *) \ No newline at end of file diff --git a/snippets/easycrypt-mode/misc/forall b/snippets/easycrypt-mode/misc/forall new file mode 100644 index 000000000..308d9def8 --- /dev/null +++ b/snippets/easycrypt-mode/misc/forall @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: forall +# key: forall +# expand-env: ((yas-indent-line 'fixed)) +# -- +forall ($1: $2), $3 \ No newline at end of file diff --git a/snippets/easycrypt-mode/misc/from b/snippets/easycrypt-mode/misc/from new file mode 100644 index 000000000..c905177bd --- /dev/null +++ b/snippets/easycrypt-mode/misc/from @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# key: from +# group: misc +# name: from +# -- +from $1 require import $2. diff --git a/snippets/easycrypt-mode/misc/from-jasmin b/snippets/easycrypt-mode/misc/from-jasmin new file mode 100644 index 000000000..b15234d4a --- /dev/null +++ b/snippets/easycrypt-mode/misc/from-jasmin @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# key: from-jasmin +# group: misc +# name: from-jasmin +# expand-env: ((yas-indent-line 'fixed)) +# -- +from Jasmin require import $1. diff --git a/snippets/easycrypt-mode/misc/fun b/snippets/easycrypt-mode/misc/fun new file mode 100644 index 000000000..13d660afc --- /dev/null +++ b/snippets/easycrypt-mode/misc/fun @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: fun +# key: fun +# expand-env: ((yas-indent-line 'fixed)) +# -- +fun ($1) => $2 \ No newline at end of file diff --git a/snippets/easycrypt-mode/misc/ge0 b/snippets/easycrypt-mode/misc/ge0 new file mode 100644 index 000000000..568d53ee0 --- /dev/null +++ b/snippets/easycrypt-mode/misc/ge0 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: ge0 +# key: ge0 +# expand-env: ((yas-indent-line 'fixed)) +# -- +0 <= $1 \ No newline at end of file diff --git a/snippets/easycrypt-mode/misc/geq0 b/snippets/easycrypt-mode/misc/geq0 new file mode 100644 index 000000000..68a247644 --- /dev/null +++ b/snippets/easycrypt-mode/misc/geq0 @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# name: ge0 +# key: ge0 +# -- +0 <= $1 \ No newline at end of file diff --git a/snippets/easycrypt-mode/misc/hint-simplify b/snippets/easycrypt-mode/misc/hint-simplify new file mode 100644 index 000000000..42d078392 --- /dev/null +++ b/snippets/easycrypt-mode/misc/hint-simplify @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: hint-simplify +# key: hint +# expand-env: ((yas-indent-line 'fixed)) +# -- +hint simplify $1. \ No newline at end of file diff --git a/snippets/easycrypt-mode/misc/if b/snippets/easycrypt-mode/misc/if new file mode 100644 index 000000000..07ff756e2 --- /dev/null +++ b/snippets/easycrypt-mode/misc/if @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: if +# key: if +# expand-env: ((yas-indent-line 'fixed)) +# -- +if $1 then $2 else $3 \ No newline at end of file diff --git a/snippets/easycrypt-mode/misc/import b/snippets/easycrypt-mode/misc/import new file mode 100644 index 000000000..3e6e466fb --- /dev/null +++ b/snippets/easycrypt-mode/misc/import @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# key: import +# group: misc +# name: import +# expand-env: ((yas-indent-line 'fixed)) +# -- +import $1. diff --git a/snippets/easycrypt-mode/misc/let-in b/snippets/easycrypt-mode/misc/let-in new file mode 100644 index 000000000..efb968232 --- /dev/null +++ b/snippets/easycrypt-mode/misc/let-in @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: let-in +# key: let-in +# expand-env: ((yas-indent-line 'fixed)) +# -- +let $1 in $2 \ No newline at end of file diff --git a/snippets/easycrypt-mode/misc/list b/snippets/easycrypt-mode/misc/list new file mode 100644 index 000000000..6f40a8bd6 --- /dev/null +++ b/snippets/easycrypt-mode/misc/list @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: list +# key: list +# expand-env: ((yas-indent-line 'fixed)) +# -- +[$1 ; $2] \ No newline at end of file diff --git a/snippets/easycrypt-mode/misc/new-comment b/snippets/easycrypt-mode/misc/new-comment new file mode 100644 index 000000000..3d6a9c423 --- /dev/null +++ b/snippets/easycrypt-mode/misc/new-comment @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# name: new-comment +# key: new-comment +# -- +(* $1 *) \ No newline at end of file diff --git a/snippets/easycrypt-mode/misc/or1 b/snippets/easycrypt-mode/misc/or1 new file mode 100644 index 000000000..ca782198f --- /dev/null +++ b/snippets/easycrypt-mode/misc/or1 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: or1 +# key: or1 +# expand-env: ((yas-indent-line 'fixed)) +# -- +$1 \/ $2 \ No newline at end of file diff --git a/snippets/easycrypt-mode/misc/or2 b/snippets/easycrypt-mode/misc/or2 new file mode 100644 index 000000000..02877126d --- /dev/null +++ b/snippets/easycrypt-mode/misc/or2 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: or2 +# key: or2 +# expand-env: ((yas-indent-line 'fixed)) +# -- +$1 || $2 \ No newline at end of file diff --git a/snippets/easycrypt-mode/misc/param b/snippets/easycrypt-mode/misc/param new file mode 100644 index 000000000..5976e9625 --- /dev/null +++ b/snippets/easycrypt-mode/misc/param @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: param +# key: param +# expand-env: ((yas-indent-line 'fixed)) +# -- +($1 : $2) \ No newline at end of file diff --git a/snippets/easycrypt-mode/misc/pred b/snippets/easycrypt-mode/misc/pred new file mode 100644 index 000000000..ac00ed83c --- /dev/null +++ b/snippets/easycrypt-mode/misc/pred @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# key: pred +# group: misc +# name: pred +# expand-env: ((yas-indent-line 'fixed)) +# -- +pred $1 = $2. diff --git a/snippets/easycrypt-mode/misc/probability b/snippets/easycrypt-mode/misc/probability new file mode 100644 index 000000000..23383bb57 --- /dev/null +++ b/snippets/easycrypt-mode/misc/probability @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: probability +# key: probability +# expand-env: ((yas-indent-line 'fixed)) +# -- +Pr[$1] \ No newline at end of file diff --git a/snippets/easycrypt-mode/misc/probability-mem b/snippets/easycrypt-mode/misc/probability-mem new file mode 100644 index 000000000..8eb21d3a0 --- /dev/null +++ b/snippets/easycrypt-mode/misc/probability-mem @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: probability-memory +# key: probability-memory +# expand-env: ((yas-indent-line 'fixed)) +# -- +Pr[$1 @ &$2 : $3] \ No newline at end of file diff --git a/snippets/easycrypt-mode/misc/range b/snippets/easycrypt-mode/misc/range new file mode 100644 index 000000000..4084dc8c0 --- /dev/null +++ b/snippets/easycrypt-mode/misc/range @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# name: range +# key: range +# -- +$1 <= $2 <= $3 \ No newline at end of file diff --git a/snippets/easycrypt-mode/misc/range-exclusive b/snippets/easycrypt-mode/misc/range-exclusive new file mode 100644 index 000000000..d92390e7a --- /dev/null +++ b/snippets/easycrypt-mode/misc/range-exclusive @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: range-exclusive +# key: range-exclusive +# expand-env: ((yas-indent-line 'fixed)) +# -- +$1 < $2 < $3 \ No newline at end of file diff --git a/snippets/easycrypt-mode/misc/range-exclusive-inclusive b/snippets/easycrypt-mode/misc/range-exclusive-inclusive new file mode 100644 index 000000000..267cdb934 --- /dev/null +++ b/snippets/easycrypt-mode/misc/range-exclusive-inclusive @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: range-exclusive-inclusive +# key: range-exclusive-inclusive +# expand-env: ((yas-indent-line 'fixed)) +# -- +$1 < $2 <= $3 \ No newline at end of file diff --git a/snippets/easycrypt-mode/misc/range-inclusive b/snippets/easycrypt-mode/misc/range-inclusive new file mode 100644 index 000000000..03774eda0 --- /dev/null +++ b/snippets/easycrypt-mode/misc/range-inclusive @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: range-inclusive +# key: range-inclusive +# expand-env: ((yas-indent-line 'fixed)) +# -- +$1 <= $2 <= $3 \ No newline at end of file diff --git a/snippets/easycrypt-mode/misc/range-inclusive-exclusive b/snippets/easycrypt-mode/misc/range-inclusive-exclusive new file mode 100644 index 000000000..0618a1bd5 --- /dev/null +++ b/snippets/easycrypt-mode/misc/range-inclusive-exclusive @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: range-inclusive-exclusive +# key: range-inclusive-exclusive +# expand-env: ((yas-indent-line 'fixed)) +# -- +$1 <= $2 < $3 \ No newline at end of file diff --git a/snippets/easycrypt-mode/misc/require-import b/snippets/easycrypt-mode/misc/require-import new file mode 100644 index 000000000..99ac5d0ef --- /dev/null +++ b/snippets/easycrypt-mode/misc/require-import @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# key: require-import +# group: misc +# name: require-import +# expand-env: ((yas-indent-line 'fixed)) +# -- +require import $1. diff --git a/snippets/easycrypt-mode/modules/module b/snippets/easycrypt-mode/modules/module new file mode 100644 index 000000000..e6e768ece --- /dev/null +++ b/snippets/easycrypt-mode/modules/module @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: modules +# name: module +# key: module +# expand-env: ((yas-indent-line 'fixed)) +# -- +module $1 = { + +}. \ No newline at end of file diff --git a/snippets/easycrypt-mode/modules/module-instance b/snippets/easycrypt-mode/modules/module-instance new file mode 100644 index 000000000..2c24e55d1 --- /dev/null +++ b/snippets/easycrypt-mode/modules/module-instance @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: modules +# name: module-instance +# key: module-instance +# expand-env: ((yas-indent-line 'fixed)) +# -- +module $1 = $2($3). \ No newline at end of file diff --git a/snippets/easycrypt-mode/modules/module-type b/snippets/easycrypt-mode/modules/module-type new file mode 100644 index 000000000..b88edff22 --- /dev/null +++ b/snippets/easycrypt-mode/modules/module-type @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: modules +# name: module-type +# key: module-type +# expand-env: ((yas-indent-line 'fixed)) +# -- +module type $1 = { + +}. \ No newline at end of file diff --git a/snippets/easycrypt-mode/modules/module-with-params b/snippets/easycrypt-mode/modules/module-with-params new file mode 100644 index 000000000..5e84cbf87 --- /dev/null +++ b/snippets/easycrypt-mode/modules/module-with-params @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# name: module-with-params +# key: module-with-params +# -- +module $1 ($2: $3) : $4 { + +}. \ No newline at end of file diff --git a/snippets/easycrypt-mode/modules/module-with-params-return b/snippets/easycrypt-mode/modules/module-with-params-return new file mode 100644 index 000000000..f70c69cd2 --- /dev/null +++ b/snippets/easycrypt-mode/modules/module-with-params-return @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: modules +# name: module-with-params-return +# key: module-with-params-return +# expand-env: ((yas-indent-line 'fixed)) +# -- +module $1 ($2: $3) : $4 { + +}. \ No newline at end of file diff --git a/snippets/easycrypt-mode/modules/module-with-return b/snippets/easycrypt-mode/modules/module-with-return new file mode 100644 index 000000000..cb6d8461c --- /dev/null +++ b/snippets/easycrypt-mode/modules/module-with-return @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: modules +# name: module-with-return +# key: module-with-return +# expand-env: ((yas-indent-line 'fixed)) +# -- +module $1 : $2 = { + +}. \ No newline at end of file diff --git a/snippets/easycrypt-mode/procedures/assign b/snippets/easycrypt-mode/procedures/assign new file mode 100644 index 000000000..ca3166968 --- /dev/null +++ b/snippets/easycrypt-mode/procedures/assign @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: procedures +# name: assign +# key: assign +# expand-env: ((yas-indent-line 'fixed)) +# -- +$1 <- $2; \ No newline at end of file diff --git a/snippets/easycrypt-mode/procedures/decrement-counter b/snippets/easycrypt-mode/procedures/decrement-counter new file mode 100644 index 000000000..3f9477903 --- /dev/null +++ b/snippets/easycrypt-mode/procedures/decrement-counter @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: procedures +# name: decrement-counter +# key: decrement-counter +# expand-env: ((yas-indent-line 'fixed)) +# -- +$1 <- $1 - 1; \ No newline at end of file diff --git a/snippets/easycrypt-mode/procedures/if-else-proc b/snippets/easycrypt-mode/procedures/if-else-proc new file mode 100644 index 000000000..d4914c228 --- /dev/null +++ b/snippets/easycrypt-mode/procedures/if-else-proc @@ -0,0 +1,12 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: procedures +# name: if-else-proc +# key: if-else-proc +# expand-env: ((yas-indent-line 'fixed)) +# -- +if ($1){ + + } else { + +} \ No newline at end of file diff --git a/snippets/easycrypt-mode/procedures/if-proc b/snippets/easycrypt-mode/procedures/if-proc new file mode 100644 index 000000000..3e6c80095 --- /dev/null +++ b/snippets/easycrypt-mode/procedures/if-proc @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: procedures +# name: if +# key: if +# expand-env: ((yas-indent-line 'fixed)) +# -- +if ($1) { + +} \ No newline at end of file diff --git a/snippets/easycrypt-mode/procedures/increment-counter b/snippets/easycrypt-mode/procedures/increment-counter new file mode 100644 index 000000000..2909e5b5a --- /dev/null +++ b/snippets/easycrypt-mode/procedures/increment-counter @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: procedures +# name: increment-counter +# key: increment-counter +# expand-env: ((yas-indent-line 'fixed)) +# -- +$1 <- $1 + 1; \ No newline at end of file diff --git a/snippets/easycrypt-mode/procedures/init-var b/snippets/easycrypt-mode/procedures/init-var new file mode 100644 index 000000000..84cbff0cd --- /dev/null +++ b/snippets/easycrypt-mode/procedures/init-var @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: procedures +# name: init-var +# key: init-var +# expand-env: ((yas-indent-line 'fixed)) +# -- +$1 <- witness; \ No newline at end of file diff --git a/snippets/easycrypt-mode/procedures/new-var b/snippets/easycrypt-mode/procedures/new-var new file mode 100644 index 000000000..409eb7d7c --- /dev/null +++ b/snippets/easycrypt-mode/procedures/new-var @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: procedures +# name: new-var +# key: new-var +# expand-env: ((yas-indent-line 'fixed)) +# -- +var $1 : $2; \ No newline at end of file diff --git a/snippets/easycrypt-mode/procedures/proc b/snippets/easycrypt-mode/procedures/proc new file mode 100644 index 000000000..3d1c561ef --- /dev/null +++ b/snippets/easycrypt-mode/procedures/proc @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: procedures +# name: proc +# key: proc +# expand-env: ((yas-indent-line 'fixed)) +# -- +proc $1($2 : $3) : $4 = { + + return $5; +} \ No newline at end of file diff --git a/snippets/easycrypt-mode/procedures/proc-abstract b/snippets/easycrypt-mode/procedures/proc-abstract new file mode 100644 index 000000000..4824f3c43 --- /dev/null +++ b/snippets/easycrypt-mode/procedures/proc-abstract @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: procedures +# name: proc-abstract +# key: proc-abstract +# expand-env: ((yas-indent-line 'fixed)) +# -- +proc $1($2: $3) : $4 \ No newline at end of file diff --git a/snippets/easycrypt-mode/procedures/proc-call b/snippets/easycrypt-mode/procedures/proc-call new file mode 100644 index 000000000..2a3ef70f1 --- /dev/null +++ b/snippets/easycrypt-mode/procedures/proc-call @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: procedures +# name: proc-call +# key: proc-call +# expand-env: ((yas-indent-line 'fixed)) +# -- +$1 <@ $2; \ No newline at end of file diff --git a/snippets/easycrypt-mode/procedures/proc-no-return b/snippets/easycrypt-mode/procedures/proc-no-return new file mode 100644 index 000000000..c6a22de09 --- /dev/null +++ b/snippets/easycrypt-mode/procedures/proc-no-return @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: procedures +# name: proc-no-return +# key: proc-no-return +# expand-env: ((yas-indent-line 'fixed)) +# -- +proc $1 ($2: $3) = { + +} \ No newline at end of file diff --git a/snippets/easycrypt-mode/procedures/sample b/snippets/easycrypt-mode/procedures/sample new file mode 100644 index 000000000..514879ef7 --- /dev/null +++ b/snippets/easycrypt-mode/procedures/sample @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: procedures +# name: sample +# key: sample +# expand-env: ((yas-indent-line 'fixed)) +# -- +$1 <$ $2; \ No newline at end of file diff --git a/snippets/easycrypt-mode/procedures/while-proc b/snippets/easycrypt-mode/procedures/while-proc new file mode 100644 index 000000000..b68bf5781 --- /dev/null +++ b/snippets/easycrypt-mode/procedures/while-proc @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: procedures +# name: while-proc +# key: while-proc +# expand-env: ((yas-indent-line 'fixed)) +# -- +while ($1) +{ + +} \ No newline at end of file diff --git a/snippets/easycrypt-mode/propositions/axiom b/snippets/easycrypt-mode/propositions/axiom new file mode 100644 index 000000000..0a144149e --- /dev/null +++ b/snippets/easycrypt-mode/propositions/axiom @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# key: axiom +# group: propositions +# name: axiom +# expand-env: ((yas-indent-line 'fixed)) +# -- +axiom $1 : $2. diff --git a/snippets/easycrypt-mode/propositions/axiomatized b/snippets/easycrypt-mode/propositions/axiomatized new file mode 100644 index 000000000..14e9a9048 --- /dev/null +++ b/snippets/easycrypt-mode/propositions/axiomatized @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# name: axiomatized +# key: axiomatized +# expand-env: ((yas-indent-line 'fixed)) +# -- +axiomatized by $1. \ No newline at end of file diff --git a/snippets/easycrypt-mode/propositions/declare b/snippets/easycrypt-mode/propositions/declare new file mode 100644 index 000000000..a1d684ea6 --- /dev/null +++ b/snippets/easycrypt-mode/propositions/declare @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# key: declare +# group: propositions +# name: declare +# expand-env: ((yas-indent-line 'fixed)) +# -- +declare $1 diff --git a/snippets/easycrypt-mode/propositions/equiv b/snippets/easycrypt-mode/propositions/equiv new file mode 100644 index 000000000..d61ffe276 --- /dev/null +++ b/snippets/easycrypt-mode/propositions/equiv @@ -0,0 +1,13 @@ +# -*- mode: snippet -*- +# key: equiv +# group: propositions +# name: equiv +# expand-env: ((yas-indent-line 'fixed)) +# -- +equiv $1 : $2 ~ $3 : + $4 + ==> + $5 . +proof. + +qed. diff --git a/snippets/easycrypt-mode/propositions/hoare b/snippets/easycrypt-mode/propositions/hoare new file mode 100644 index 000000000..4ba84f48e --- /dev/null +++ b/snippets/easycrypt-mode/propositions/hoare @@ -0,0 +1,13 @@ +# -*- mode: snippet -*- +# key: hoare +# group: propositions +# name: hoare +# expand-env: ((yas-indent-line 'fixed)) +# -- +hoare $1 : $2 : + $3 + ==> + $4. +proof. + +qed. diff --git a/snippets/easycrypt-mode/propositions/lemma b/snippets/easycrypt-mode/propositions/lemma new file mode 100644 index 000000000..1986d59f2 --- /dev/null +++ b/snippets/easycrypt-mode/propositions/lemma @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# key: lemma +# group: propositions +# name: lemma +# expand-env: ((yas-indent-line 'fixed)) +# -- +lemma $1 : + $2. +proof. + +qed. diff --git a/snippets/easycrypt-mode/propositions/lemma_equality b/snippets/easycrypt-mode/propositions/lemma_equality new file mode 100644 index 000000000..10be8aaa4 --- /dev/null +++ b/snippets/easycrypt-mode/propositions/lemma_equality @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# name: lemma-equality +# key: lemma-equality +# expand-env: ((yas-indent-line 'fixed)) +# -- +lemma $1 : + ($2) = ($3). +proof. +$4 +qed. \ No newline at end of file diff --git a/snippets/easycrypt-mode/propositions/lemma_equiv b/snippets/easycrypt-mode/propositions/lemma_equiv new file mode 100644 index 000000000..6cb526913 --- /dev/null +++ b/snippets/easycrypt-mode/propositions/lemma_equiv @@ -0,0 +1,16 @@ +# -*- mode: snippet -*- +# key: lemma-equiv +# group: propositions +# name: lemma-equiv +# expand-env: ((yas-indent-line 'fixed)) +# -- +lemma $1 : + equiv [ + $2 ~ $3 + $4 + ==> + $5 + ]. +proof. + +qed. diff --git a/snippets/easycrypt-mode/propositions/lemma_hoare b/snippets/easycrypt-mode/propositions/lemma_hoare new file mode 100644 index 000000000..5c2d2621b --- /dev/null +++ b/snippets/easycrypt-mode/propositions/lemma_hoare @@ -0,0 +1,15 @@ +# -*- mode: snippet -*- +# key: lemma-hoare +# group: propositions +# name: lemma-hoare +# expand-env: ((yas-indent-line 'fixed)) +# -- +lemma $1 : + hoare [ + $2 + ==> + $3 + ]. +proof. + +qed. diff --git a/snippets/easycrypt-mode/propositions/lemma_islossless b/snippets/easycrypt-mode/propositions/lemma_islossless new file mode 100644 index 000000000..15d9abb37 --- /dev/null +++ b/snippets/easycrypt-mode/propositions/lemma_islossless @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# key: lemma-islossless +# group: propositions +# name: lemma-islossless +# expand-env: ((yas-indent-line 'fixed)) +# -- +lemma $1 : islossless + $2. +proof. + +qed. diff --git a/snippets/easycrypt-mode/propositions/lemma_phoare b/snippets/easycrypt-mode/propositions/lemma_phoare new file mode 100644 index 000000000..2d41e65b7 --- /dev/null +++ b/snippets/easycrypt-mode/propositions/lemma_phoare @@ -0,0 +1,15 @@ +# -*- mode: snippet -*- +# key: lemma-phoare +# group: propositions +# name: lemma-phoare +# expand-env: ((yas-indent-line 'fixed)) +# -- +lemma $1 : + phoare [ + $2 + ==> + $3 + ] = 1%r. +proof. + +qed. diff --git a/snippets/easycrypt-mode/propositions/local b/snippets/easycrypt-mode/propositions/local new file mode 100644 index 000000000..8dc4f14e9 --- /dev/null +++ b/snippets/easycrypt-mode/propositions/local @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# key: local +# group: propositions +# name: local +# expand-env: ((yas-indent-line 'fixed)) +# -- +local $1 \ No newline at end of file diff --git a/snippets/easycrypt-mode/propositions/op-as b/snippets/easycrypt-mode/propositions/op-as new file mode 100644 index 000000000..dd46184ad --- /dev/null +++ b/snippets/easycrypt-mode/propositions/op-as @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# name: op-as +# key: op-as +# expand-env: ((yas-indent-line 'fixed)) +# -- +op $1 : {$2 | $3} as $4. \ No newline at end of file diff --git a/snippets/easycrypt-mode/propositions/op-axiomatixed b/snippets/easycrypt-mode/propositions/op-axiomatixed new file mode 100644 index 000000000..13d80f3ab --- /dev/null +++ b/snippets/easycrypt-mode/propositions/op-axiomatixed @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# name: op-axiomatized +# key: op-axiomatized +# expand-env: ((yas-indent-line 'fixed)) +# -- +op $1 = $2 axiomatized by $3. \ No newline at end of file diff --git a/snippets/easycrypt-mode/propositions/op-barebones b/snippets/easycrypt-mode/propositions/op-barebones new file mode 100644 index 000000000..962138c1d --- /dev/null +++ b/snippets/easycrypt-mode/propositions/op-barebones @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# name: op-barebones +# key: op-barebones +# expand-env: ((yas-indent-line 'fixed)) +# -- +op $1 = $2. \ No newline at end of file diff --git a/snippets/easycrypt-mode/propositions/op-no-return b/snippets/easycrypt-mode/propositions/op-no-return new file mode 100644 index 000000000..754eb62f2 --- /dev/null +++ b/snippets/easycrypt-mode/propositions/op-no-return @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# name: op-no-return +# key: op-no-return +# expand-env: ((yas-indent-line 'fixed)) +# -- +op $1 ($2: $3) = $4. \ No newline at end of file diff --git a/snippets/easycrypt-mode/propositions/phoare b/snippets/easycrypt-mode/propositions/phoare new file mode 100644 index 000000000..a0280c964 --- /dev/null +++ b/snippets/easycrypt-mode/propositions/phoare @@ -0,0 +1,14 @@ +# -*- mode: snippet -*- +# key: phoare +# group: propositions +# name: phoare +# expand-env: ((yas-indent-line 'fixed)) +# -- +phoare : + [ $1 + ==> + $2 + ] = 1%r. +proof. + +qed. diff --git a/snippets/easycrypt-mode/propositions/small-lemma b/snippets/easycrypt-mode/propositions/small-lemma new file mode 100644 index 000000000..285ebec48 --- /dev/null +++ b/snippets/easycrypt-mode/propositions/small-lemma @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# name: small-lemma +# key: small-lemma +# expand-env: ((yas-indent-line 'fixed)) +# -- +lemma $1 : $2 by $3. \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/alias b/snippets/easycrypt-mode/tactics/alias new file mode 100644 index 000000000..6ebd7c34c --- /dev/null +++ b/snippets/easycrypt-mode/tactics/alias @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: alias +# key: alias +# expand-env: ((yas-indent-line 'fixed)) +# -- +alias $1 $2 = $3 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/alias-with b/snippets/easycrypt-mode/tactics/alias-with new file mode 100644 index 000000000..30b9d6427 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/alias-with @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: alias-with +# key: alias-with +# expand-env: ((yas-indent-line 'fixed)) +# -- +alias $1 with $2 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/alias1 b/snippets/easycrypt-mode/tactics/alias1 new file mode 100644 index 000000000..62b2bee36 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/alias1 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: alias1 +# key: alias1 +# expand-env: ((yas-indent-line 'fixed)) +# -- +alias{1} $1 $2 = $3 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/alias1-with b/snippets/easycrypt-mode/tactics/alias1-with new file mode 100644 index 000000000..c2b231b76 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/alias1-with @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: alias-with1 +# key: alias-with1 +# expand-env: ((yas-indent-line 'fixed)) +# -- +alias{1} $1 with $2 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/alias2 b/snippets/easycrypt-mode/tactics/alias2 new file mode 100644 index 000000000..9ba63bf6b --- /dev/null +++ b/snippets/easycrypt-mode/tactics/alias2 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: alias2 +# key: alias2 +# expand-env: ((yas-indent-line 'fixed)) +# -- +alias{2} $1 $2 = $3 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/alias2-with b/snippets/easycrypt-mode/tactics/alias2-with new file mode 100644 index 000000000..519a13b17 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/alias2-with @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: alias-with2 +# key: alias-with2 +# expand-env: ((yas-indent-line 'fixed)) +# -- +alias{2} $1 with $2 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/aliaswith b/snippets/easycrypt-mode/tactics/aliaswith new file mode 100644 index 000000000..3c8e03709 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/aliaswith @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# name: aliaswith +# key: aliaswith +# -- +alias $1 with $2 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/aliaswith1 b/snippets/easycrypt-mode/tactics/aliaswith1 new file mode 100644 index 000000000..dd1e3a40a --- /dev/null +++ b/snippets/easycrypt-mode/tactics/aliaswith1 @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# name: aliaswith1 +# key: aliaswith1 +# -- +alias{1} $1 with $2 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/aliaswith2 b/snippets/easycrypt-mode/tactics/aliaswith2 new file mode 100644 index 000000000..f2e415244 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/aliaswith2 @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# name: aliaswith2 +# key: aliaswith2 +# -- +alias{2} $1 with $2 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/apply-args b/snippets/easycrypt-mode/tactics/apply-args new file mode 100644 index 000000000..989684595 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/apply-args @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: apply-args +# key: apply-args +# expand-env: ((yas-indent-line 'fixed)) +# -- +apply ($1 $2). \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/apply-in b/snippets/easycrypt-mode/tactics/apply-in new file mode 100644 index 000000000..328e38b4d --- /dev/null +++ b/snippets/easycrypt-mode/tactics/apply-in @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: apply-in +# key: apply-in +# expand-env: ((yas-indent-line 'fixed)) +# -- +apply $1 in $2 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/apply-proof-term b/snippets/easycrypt-mode/tactics/apply-proof-term new file mode 100644 index 000000000..54fb0e679 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/apply-proof-term @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: apply-proof-term +# key: apply-proof-term +# expand-env: ((yas-indent-line 'fixed)) +# -- +apply /$1 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/async-while b/snippets/easycrypt-mode/tactics/async-while new file mode 100644 index 000000000..e37b8b35e --- /dev/null +++ b/snippets/easycrypt-mode/tactics/async-while @@ -0,0 +1,13 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: async-while +# key: async-while +# expand-env: ((yas-indent-line 'fixed)) +# -- +async while + [ (fun r => $1), ($2) ] + [ (fun r => $3), ($2) ] + ($4) ($5) + : + ($6). \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/auto b/snippets/easycrypt-mode/tactics/auto new file mode 100644 index 000000000..129e8f570 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/auto @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# key: auto +# group: tactics +# name: auto +# expand-env: ((yas-indent-line 'fixed)) +# -- +auto => />. diff --git a/snippets/easycrypt-mode/tactics/auto.yasnippet b/snippets/easycrypt-mode/tactics/auto.yasnippet new file mode 100644 index 000000000..129e8f570 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/auto.yasnippet @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# key: auto +# group: tactics +# name: auto +# expand-env: ((yas-indent-line 'fixed)) +# -- +auto => />. diff --git a/snippets/easycrypt-mode/tactics/bad-smt b/snippets/easycrypt-mode/tactics/bad-smt new file mode 100644 index 000000000..86d9f1148 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/bad-smt @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: bad-smt +# key: bad-smt +# expand-env: ((yas-indent-line 'fixed)) +# -- +smt. \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/byequiv b/snippets/easycrypt-mode/tactics/byequiv new file mode 100644 index 000000000..fd87d692e --- /dev/null +++ b/snippets/easycrypt-mode/tactics/byequiv @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: byequiv +# key: byequiv +# expand-env: ((yas-indent-line 'fixed)) +# -- +byequiv (_ : $1 ==> $2) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/byphoare b/snippets/easycrypt-mode/tactics/byphoare new file mode 100644 index 000000000..dc81c21e4 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/byphoare @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: byphoare +# key: nyphoare +# expand-env: ((yas-indent-line 'fixed)) +# -- +byphoare (_ : $1 ==> $2) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/bypr b/snippets/easycrypt-mode/tactics/bypr new file mode 100644 index 000000000..82804e74e --- /dev/null +++ b/snippets/easycrypt-mode/tactics/bypr @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: bypr +# key: bypr +# expand-env: ((yas-indent-line 'fixed)) +# -- +bypr ($1){1} ($2){2} \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/call b/snippets/easycrypt-mode/tactics/call new file mode 100644 index 000000000..61caf5ae4 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/call @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: call +# key: call +# expand-env: ((yas-indent-line 'fixed)) +# -- +call (_ : $1 ==> $2) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/call-invar b/snippets/easycrypt-mode/tactics/call-invar new file mode 100644 index 000000000..8bb870b84 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/call-invar @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: call-invar +# key: call-invar +# expand-env: ((yas-indent-line 'fixed)) +# -- +call (_: $1) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/call-invar2 b/snippets/easycrypt-mode/tactics/call-invar2 new file mode 100644 index 000000000..1a1f3af89 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/call-invar2 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: call-invar2 +# key: call-invar2 +# expand-env: ((yas-indent-line 'fixed)) +# -- +call (_: $1, $2) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/call-invar3 b/snippets/easycrypt-mode/tactics/call-invar3 new file mode 100644 index 000000000..d850a2cf7 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/call-invar3 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: call-invar3 +# key: call-invar3 +# expand-env: ((yas-indent-line 'fixed)) +# -- +call (_: $1, $2, $3) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/call-true b/snippets/easycrypt-mode/tactics/call-true new file mode 100644 index 000000000..111dc91cf --- /dev/null +++ b/snippets/easycrypt-mode/tactics/call-true @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: call-true +# key: call-true +# expand-env: ((yas-indent-line 'fixed)) +# -- +call (_: true) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/call-true-true b/snippets/easycrypt-mode/tactics/call-true-true new file mode 100644 index 000000000..d1bd0f162 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/call-true-true @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: call-true-true +# key: call-true-true +# expand-env: ((yas-indent-line 'fixed)) +# -- +call(_: true ==> true). \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/call1 b/snippets/easycrypt-mode/tactics/call1 new file mode 100644 index 000000000..a227a43be --- /dev/null +++ b/snippets/easycrypt-mode/tactics/call1 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: call1 +# key: call1 +# expand-env: ((yas-indent-line 'fixed)) +# -- +call{1} (_ : $1 ==> $2) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/call1-invar b/snippets/easycrypt-mode/tactics/call1-invar new file mode 100644 index 000000000..6e2823687 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/call1-invar @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: call1-invar +# key: call1-invar +# expand-env: ((yas-indent-line 'fixed)) +# -- +call{1} ($1) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/call1-true b/snippets/easycrypt-mode/tactics/call1-true new file mode 100644 index 000000000..87d3bcd96 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/call1-true @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: call1-true +# key: call1-true +# expand-env: ((yas-indent-line 'fixed)) +# -- +call{1} (_ : true) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/call1-true-true b/snippets/easycrypt-mode/tactics/call1-true-true new file mode 100644 index 000000000..6edc478bb --- /dev/null +++ b/snippets/easycrypt-mode/tactics/call1-true-true @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: call1-true-true +# key: call1-true-true +# expand-env: ((yas-indent-line 'fixed)) +# -- +call{1} (_ : true ==> true) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/call2 b/snippets/easycrypt-mode/tactics/call2 new file mode 100644 index 000000000..94bbe7f03 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/call2 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: call2 +# key: call2 +# expand-env: ((yas-indent-line 'fixed)) +# -- +call{2} (_ : $1 ==> $2) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/call2-invar b/snippets/easycrypt-mode/tactics/call2-invar new file mode 100644 index 000000000..cffbc4047 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/call2-invar @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: call2-invar +# key: call2-invar +# expand-env: ((yas-indent-line 'fixed)) +# -- +call{2} ($1) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/call2-true b/snippets/easycrypt-mode/tactics/call2-true new file mode 100644 index 000000000..f25c34e14 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/call2-true @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: call2-true +# key: call2-true +# expand-env: ((yas-indent-line 'fixed)) +# -- +call{2} (_ : true) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/call2-true-true b/snippets/easycrypt-mode/tactics/call2-true-true new file mode 100644 index 000000000..5ba866e6c --- /dev/null +++ b/snippets/easycrypt-mode/tactics/call2-true-true @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: call2-true-true +# key: call2-true-true +# expand-env: ((yas-indent-line 'fixed)) +# -- +call{2} (_ : true ==> true) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/case b/snippets/easycrypt-mode/tactics/case new file mode 100644 index 000000000..d994135ac --- /dev/null +++ b/snippets/easycrypt-mode/tactics/case @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: case +# key: case +# expand-env: ((yas-indent-line 'fixed)) +# -- +case: ($1{1}) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/case-move b/snippets/easycrypt-mode/tactics/case-move new file mode 100644 index 000000000..7870ec7a0 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/case-move @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: case-move +# key: case-move +# expand-env: ((yas-indent-line 'fixed)) +# -- +case: ($1{1}) => $2 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/cfold b/snippets/easycrypt-mode/tactics/cfold new file mode 100644 index 000000000..462536ed4 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/cfold @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: cfold +# key: cfold +# expand-env: ((yas-indent-line 'fixed)) +# -- +cfold $1 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/cfold-from-to b/snippets/easycrypt-mode/tactics/cfold-from-to new file mode 100644 index 000000000..6e35b33d1 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/cfold-from-to @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: cfold-from-to +# key: cfold-from-to +# expand-env: ((yas-indent-line 'fixed)) +# -- +cfold $1 ! $2 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/cfold-from-to1 b/snippets/easycrypt-mode/tactics/cfold-from-to1 new file mode 100644 index 000000000..0dd4d704a --- /dev/null +++ b/snippets/easycrypt-mode/tactics/cfold-from-to1 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: cfold-from-to1 +# key: cfold-from-to1 +# expand-env: ((yas-indent-line 'fixed)) +# -- +cfold{1} $1 ! $2 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/cfold-from-to2 b/snippets/easycrypt-mode/tactics/cfold-from-to2 new file mode 100644 index 000000000..b84d070eb --- /dev/null +++ b/snippets/easycrypt-mode/tactics/cfold-from-to2 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: cfold-from-to2 +# key: cfold-from-to2 +# expand-env: ((yas-indent-line 'fixed)) +# -- +cfold{2} $1 ! $2 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/cfold1 b/snippets/easycrypt-mode/tactics/cfold1 new file mode 100644 index 000000000..75c801ec3 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/cfold1 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: cfold1 +# key: cfold1 +# expand-env: ((yas-indent-line 'fixed)) +# -- +cfold{1} $1 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/cfold2 b/snippets/easycrypt-mode/tactics/cfold2 new file mode 100644 index 000000000..d3a4ccba3 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/cfold2 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: cfold2 +# key: cfold2 +# expand-env: ((yas-indent-line 'fixed)) +# -- +cfold{2} $1 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/cfold_from_to b/snippets/easycrypt-mode/tactics/cfold_from_to new file mode 100644 index 000000000..68a2b5599 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/cfold_from_to @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# name: cfold_from_to +# key: cfold_from_to +# -- +cfold $1 ! $2 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/cfold_from_to1 b/snippets/easycrypt-mode/tactics/cfold_from_to1 new file mode 100644 index 000000000..e9f6221f1 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/cfold_from_to1 @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# name: cfold_from_to1 +# key: cfold_from_to1 +# -- +cfold{1} $1 ! $2 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/cfold_from_to2 b/snippets/easycrypt-mode/tactics/cfold_from_to2 new file mode 100644 index 000000000..2ba6ab6d3 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/cfold_from_to2 @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# name: cfold_from_to2 +# key: cfold_from_to2 +# -- +cfold{2} $1 ! $2 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/clear b/snippets/easycrypt-mode/tactics/clear new file mode 100644 index 000000000..aef333dee --- /dev/null +++ b/snippets/easycrypt-mode/tactics/clear @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: clear +# key: clear +# expand-env: ((yas-indent-line 'fixed)) +# -- +clear $1. \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/conseq b/snippets/easycrypt-mode/tactics/conseq new file mode 100644 index 000000000..f385efdaf --- /dev/null +++ b/snippets/easycrypt-mode/tactics/conseq @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: conseq +# key: conseq +# expand-env: ((yas-indent-line 'fixed)) +# -- +conseq (_ : $1 ==> $2) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/conseq-invar b/snippets/easycrypt-mode/tactics/conseq-invar new file mode 100644 index 000000000..f2d5d6000 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/conseq-invar @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: conseq-invar +# key: conseq-invar +# expand-env: ((yas-indent-line 'fixed)) +# -- +conseq (_ : $1) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/conseq-true b/snippets/easycrypt-mode/tactics/conseq-true new file mode 100644 index 000000000..8397f5cc5 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/conseq-true @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: conseq-true +# key: conseq-true +# expand-env: ((yas-indent-line 'fixed)) +# -- +conseq (_: _ ==> true) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/conseq-true-true b/snippets/easycrypt-mode/tactics/conseq-true-true new file mode 100644 index 000000000..cd38e952a --- /dev/null +++ b/snippets/easycrypt-mode/tactics/conseq-true-true @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: conseq-true-true +# key: conseq-true-true +# expand-env: ((yas-indent-line 'fixed)) +# -- +conseq (_: true ==> true) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/conseq1 b/snippets/easycrypt-mode/tactics/conseq1 new file mode 100644 index 000000000..880e2fa68 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/conseq1 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: conseq1 +# key: conseq1 +# expand-env: ((yas-indent-line 'fixed)) +# -- +conseq{1} (_ : $1 ==> $2) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/conseq1-invar b/snippets/easycrypt-mode/tactics/conseq1-invar new file mode 100644 index 000000000..e02ad18a6 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/conseq1-invar @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: conseq1-invar +# key: conseq1-invar +# expand-env: ((yas-indent-line 'fixed)) +# -- +conseq{1} ($1) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/conseq1-true b/snippets/easycrypt-mode/tactics/conseq1-true new file mode 100644 index 000000000..cd4c65581 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/conseq1-true @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: conseq1-true +# key: conseq1-true +# expand-env: ((yas-indent-line 'fixed)) +# -- +conseq{1} (_ : true) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/conseq1-true-true b/snippets/easycrypt-mode/tactics/conseq1-true-true new file mode 100644 index 000000000..a7dcd801e --- /dev/null +++ b/snippets/easycrypt-mode/tactics/conseq1-true-true @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: conseq1-true-true +# key: conseq1-true-true +# expand-env: ((yas-indent-line 'fixed)) +# -- +conseq{1} (_ : true ==> true) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/conseq2 b/snippets/easycrypt-mode/tactics/conseq2 new file mode 100644 index 000000000..bfcc44d3c --- /dev/null +++ b/snippets/easycrypt-mode/tactics/conseq2 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: conseq2 +# key: conseq2 +# expand-env: ((yas-indent-line 'fixed)) +# -- +conseq{2} (_ : $1 ==> $2) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/conseq2-invar b/snippets/easycrypt-mode/tactics/conseq2-invar new file mode 100644 index 000000000..ffc44e712 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/conseq2-invar @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: conseq2-invar +# key: conseq2-invar +# expand-env: ((yas-indent-line 'fixed)) +# -- +conseq{2} ($1) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/conseq2-true b/snippets/easycrypt-mode/tactics/conseq2-true new file mode 100644 index 000000000..c541f83c8 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/conseq2-true @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: conseq2-true +# key: conseq2-true +# expand-env: ((yas-indent-line 'fixed)) +# -- +conseq{2} (_ : true) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/conseq2-true-true b/snippets/easycrypt-mode/tactics/conseq2-true-true new file mode 100644 index 000000000..0da984e22 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/conseq2-true-true @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: conseq2-true-true +# key: conseq2-true-true +# expand-env: ((yas-indent-line 'fixed)) +# -- +conseq{2} (_ : true ==> true) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/do-n-times b/snippets/easycrypt-mode/tactics/do-n-times new file mode 100644 index 000000000..2bb626c29 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/do-n-times @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: do-n-times +# key: do-n-times +# expand-env: ((yas-indent-line 'fixed)) +# -- +do $1! ($2). \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/do-split b/snippets/easycrypt-mode/tactics/do-split new file mode 100644 index 000000000..27ab47c95 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/do-split @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: dosplit +# key: dosplit +# expand-env: ((yas-indent-line 'fixed)) +# -- +do split. + + $1 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/dosplit b/snippets/easycrypt-mode/tactics/dosplit new file mode 100644 index 000000000..8c851d028 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/dosplit @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# name: dosplit +# key: dosplit +# -- +do split. + + $1 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/ecall b/snippets/easycrypt-mode/tactics/ecall new file mode 100644 index 000000000..81ec1a92b --- /dev/null +++ b/snippets/easycrypt-mode/tactics/ecall @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: ecall +# key: ecall +# expand-env: ((yas-indent-line 'fixed)) +# -- +ecall ($1). \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/ecall-wp b/snippets/easycrypt-mode/tactics/ecall-wp new file mode 100644 index 000000000..15ed6ecc9 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/ecall-wp @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: ecall-wp +# key: ecall-wp +# expand-env: ((yas-indent-line 'fixed)) +# -- +ecall ($1); wp. \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/elim-proof-term b/snippets/easycrypt-mode/tactics/elim-proof-term new file mode 100644 index 000000000..2ebdff3ce --- /dev/null +++ b/snippets/easycrypt-mode/tactics/elim-proof-term @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: elim-proof-term +# key: elim-proof-term +# expand-env: ((yas-indent-line 'fixed)) +# -- +elim /$1 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/elim-var b/snippets/easycrypt-mode/tactics/elim-var new file mode 100644 index 000000000..1b4884c36 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/elim-var @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: elim-var +# key: elim-var +# expand-env: ((yas-indent-line 'fixed)) +# -- +elim: $1 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/exists b/snippets/easycrypt-mode/tactics/exists new file mode 100644 index 000000000..d36e75942 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/exists @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: exists +# key: exists +# expand-env: ((yas-indent-line 'fixed)) +# -- +exists ($1) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/exists-astreix1 b/snippets/easycrypt-mode/tactics/exists-astreix1 new file mode 100644 index 000000000..26927b559 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/exists-astreix1 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: exists-astreix1 +# key: exists-astreix1 +# expand-env: ((yas-indent-line 'fixed)) +# -- +exists* ($1){1}, ($2) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/exists-astrix b/snippets/easycrypt-mode/tactics/exists-astrix new file mode 100644 index 000000000..642074cc8 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/exists-astrix @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: exists-astrix +# key: exists-astreix +# expand-env: ((yas-indent-line 'fixed)) +# -- +exists* ($1) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/first-last b/snippets/easycrypt-mode/tactics/first-last new file mode 100644 index 000000000..247ad43c4 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/first-last @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: first-last +# key: first-last +# expand-env: ((yas-indent-line 'fixed)) +# -- +$1; first last \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/first-n-last b/snippets/easycrypt-mode/tactics/first-n-last new file mode 100644 index 000000000..ee8eb6e27 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/first-n-last @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: first-n-last +# key: +# -- +$1; first $2 last \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/firstn b/snippets/easycrypt-mode/tactics/firstn new file mode 100644 index 000000000..309d68c61 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/firstn @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: firstn +# key: firstn +# expand-env: ((yas-indent-line 'fixed)) +# -- +$1; first $2 $3 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/fission b/snippets/easycrypt-mode/tactics/fission new file mode 100644 index 000000000..d0950b1b8 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/fission @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: fission +# key: fission +# expand-env: ((yas-indent-line 'fixed)) +# -- +fission $1!$2 @ $3, $4 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/fission1 b/snippets/easycrypt-mode/tactics/fission1 new file mode 100644 index 000000000..c1da1102a --- /dev/null +++ b/snippets/easycrypt-mode/tactics/fission1 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: fission1 +# key: fission1 +# expand-env: ((yas-indent-line 'fixed)) +# -- +fission{1} $1!$2 @ $3, $4 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/fission2 b/snippets/easycrypt-mode/tactics/fission2 new file mode 100644 index 000000000..62a6c30ad --- /dev/null +++ b/snippets/easycrypt-mode/tactics/fission2 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: fission2 +# key: fission2 +# expand-env: ((yas-indent-line 'fixed)) +# -- +fission{2} $1!$2 @ $3, $4 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/fusion b/snippets/easycrypt-mode/tactics/fusion new file mode 100644 index 000000000..e5ccdf2af --- /dev/null +++ b/snippets/easycrypt-mode/tactics/fusion @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: fusion +# key: fusion +# expand-env: ((yas-indent-line 'fixed)) +# -- +fusion $1!$2 @ $3, $4 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/fusion1 b/snippets/easycrypt-mode/tactics/fusion1 new file mode 100644 index 000000000..9e31624f6 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/fusion1 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: fusion1 +# key: fusion1 +# expand-env: ((yas-indent-line 'fixed)) +# -- +fusion{1} $1!$2 @ $3, $4 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/fusion2 b/snippets/easycrypt-mode/tactics/fusion2 new file mode 100644 index 000000000..d86c97896 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/fusion2 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: fusion2 +# key: fusion2 +# expand-env: ((yas-indent-line 'fixed)) +# -- +fusion{2} $1!$2 @ $3, $4 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/have-define b/snippets/easycrypt-mode/tactics/have-define new file mode 100644 index 000000000..9b8de18c0 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/have-define @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: have-define +# key: have-define +# expand-env: ((yas-indent-line 'fixed)) +# -- +have := $1. \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/have-introduce b/snippets/easycrypt-mode/tactics/have-introduce new file mode 100644 index 000000000..690c887bb --- /dev/null +++ b/snippets/easycrypt-mode/tactics/have-introduce @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: have-introduce +# key: have-introduce +# expand-env: ((yas-indent-line 'fixed)) +# -- +have $1: $2. \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/have-write-left b/snippets/easycrypt-mode/tactics/have-write-left new file mode 100644 index 000000000..162c18592 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/have-write-left @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: have-write-left +# key: have-write-left +# expand-env: ((yas-indent-line 'fixed)) +# -- +have <-: $1. \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/have-write-left-eq b/snippets/easycrypt-mode/tactics/have-write-left-eq new file mode 100644 index 000000000..f4c952b2a --- /dev/null +++ b/snippets/easycrypt-mode/tactics/have-write-left-eq @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: have-write-left-eq +# key: have-write-left-eq +# expand-env: ((yas-indent-line 'fixed)) +# -- +have <-: ($1) = ($2). \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/have-write-right b/snippets/easycrypt-mode/tactics/have-write-right new file mode 100644 index 000000000..7a70603c9 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/have-write-right @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: have-write-right +# key: have-write-right +# expand-env: ((yas-indent-line 'fixed)) +# -- +have ->: $1. \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/have-write-right-eq b/snippets/easycrypt-mode/tactics/have-write-right-eq new file mode 100644 index 000000000..872413ada --- /dev/null +++ b/snippets/easycrypt-mode/tactics/have-write-right-eq @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: have-write-right-eq +# key: have-wrtie-right-eq +# expand-env: ((yas-indent-line 'fixed)) +# -- +have ->: ($1) = ($2). \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/if b/snippets/easycrypt-mode/tactics/if new file mode 100644 index 000000000..3aad14743 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/if @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# name: if +# key: if +# -- +if ($1) { + +} \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/if1 b/snippets/easycrypt-mode/tactics/if1 new file mode 100644 index 000000000..7b77179d3 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/if1 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: if1 +# key: if1 +# expand-env: ((yas-indent-line 'fixed)) +# -- +if{1} \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/if2 b/snippets/easycrypt-mode/tactics/if2 new file mode 100644 index 000000000..f7c66f336 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/if2 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: if2 +# key: if2 +# expand-env: ((yas-indent-line 'fixed)) +# -- +if{2} \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/implies b/snippets/easycrypt-mode/tactics/implies new file mode 100644 index 000000000..c0b343df1 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/implies @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: implies +# key: implies +# -- +$1 => $2 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/implies-brackets b/snippets/easycrypt-mode/tactics/implies-brackets new file mode 100644 index 000000000..490e1ed03 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/implies-brackets @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: implies-brackets +# key: implies-brackets +# -- +($1 => $2) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/inline b/snippets/easycrypt-mode/tactics/inline new file mode 100644 index 000000000..e2937db50 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/inline @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# name: inline +# key: inline +# -- +inline {$1} ($2). \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/inline1 b/snippets/easycrypt-mode/tactics/inline1 new file mode 100644 index 000000000..e8c4c4f85 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/inline1 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: inline1 +# key: inline1 +# expand-env: ((yas-indent-line 'fixed)) +# -- +inline{1} ($1). \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/inline2 b/snippets/easycrypt-mode/tactics/inline2 new file mode 100644 index 000000000..99f118f95 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/inline2 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: inline2 +# key: inline2 +# expand-env: ((yas-indent-line 'fixed)) +# -- +inline{2} ($1). \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/last b/snippets/easycrypt-mode/tactics/last new file mode 100644 index 000000000..0c7525585 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/last @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: last +# key: last +# expand-env: ((yas-indent-line 'fixed)) +# -- +$1; last $2 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/last-first b/snippets/easycrypt-mode/tactics/last-first new file mode 100644 index 000000000..3c034b534 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/last-first @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: last-first +# key: last-first +# expand-env: ((yas-indent-line 'fixed)) +# -- +$1; last first \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/last-n-first b/snippets/easycrypt-mode/tactics/last-n-first new file mode 100644 index 000000000..dae2795ed --- /dev/null +++ b/snippets/easycrypt-mode/tactics/last-n-first @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: last-n-first +# key: last-n-first +# expand-env: ((yas-indent-line 'fixed)) +# -- +$1; last $2 first \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/lastn b/snippets/easycrypt-mode/tactics/lastn new file mode 100644 index 000000000..23aaece6a --- /dev/null +++ b/snippets/easycrypt-mode/tactics/lastn @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: lastn +# key: lastn +# expand-env: ((yas-indent-line 'fixed)) +# -- +τ1; last $1 $2 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/move-1 b/snippets/easycrypt-mode/tactics/move-1 new file mode 100644 index 000000000..fcf415fbc --- /dev/null +++ b/snippets/easycrypt-mode/tactics/move-1 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: move-1 +# key: move-1 +# expand-env: ((yas-indent-line 'fixed)) +# -- +move => &1 $1 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/move-1m2 b/snippets/easycrypt-mode/tactics/move-1m2 new file mode 100644 index 000000000..8d3450229 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/move-1m2 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: move-1m2 +# key: move-1m2 +# expand-env: ((yas-indent-line 'fixed)) +# -- +move => &1 &m &2 $1 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/move-2 b/snippets/easycrypt-mode/tactics/move-2 new file mode 100644 index 000000000..22f0d47fa --- /dev/null +++ b/snippets/easycrypt-mode/tactics/move-2 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: move-2 +# key: move-2 +# expand-env: ((yas-indent-line 'fixed)) +# -- +move => &2 $1 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/move-from-assumption b/snippets/easycrypt-mode/tactics/move-from-assumption new file mode 100644 index 000000000..bab2f09fd --- /dev/null +++ b/snippets/easycrypt-mode/tactics/move-from-assumption @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: move-from-assumption +# key: move-from-assumption +# expand-env: ((yas-indent-line 'fixed)) +# -- +move : $1. \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/move-hr b/snippets/easycrypt-mode/tactics/move-hr new file mode 100644 index 000000000..0b0f944dc --- /dev/null +++ b/snippets/easycrypt-mode/tactics/move-hr @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: move-hr +# key: move-hr +# expand-env: ((yas-indent-line 'fixed)) +# -- +move => &hr $1 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/move-lemma-args b/snippets/easycrypt-mode/tactics/move-lemma-args new file mode 100644 index 000000000..6b8ab892a --- /dev/null +++ b/snippets/easycrypt-mode/tactics/move-lemma-args @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: move-lemma-args +# key: move-lemma-args +# expand-env: ((yas-indent-line 'fixed)) +# -- +move: ($1 $2) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/move-to-assumption b/snippets/easycrypt-mode/tactics/move-to-assumption new file mode 100644 index 000000000..ba2b63e1f --- /dev/null +++ b/snippets/easycrypt-mode/tactics/move-to-assumption @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: move-to-assumption +# key: move-to-assumptions +# expand-env: ((yas-indent-line 'fixed)) +# -- +move => $1 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/pose b/snippets/easycrypt-mode/tactics/pose new file mode 100644 index 000000000..fd4570fb1 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/pose @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: pose +# key: pose +# expand-env: ((yas-indent-line 'fixed)) +# -- +pose $1 := $2. \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/proc-simplify b/snippets/easycrypt-mode/tactics/proc-simplify new file mode 100644 index 000000000..71c3d8323 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/proc-simplify @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: proc-simplify +# key: proc-simplify +# expand-env: ((yas-indent-line 'fixed)) +# -- +proc => //=. \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/proc-up-to-bad b/snippets/easycrypt-mode/tactics/proc-up-to-bad new file mode 100644 index 000000000..18acb9068 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/proc-up-to-bad @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: proc-up-to-bad +# key: proc-up-to-bad +# expand-env: ((yas-indent-line 'fixed)) +# -- +proc $1 ($2) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/proc-up-to-bad2 b/snippets/easycrypt-mode/tactics/proc-up-to-bad2 new file mode 100644 index 000000000..60406e8ac --- /dev/null +++ b/snippets/easycrypt-mode/tactics/proc-up-to-bad2 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: proc-up-to-bad2 +# key: proc-up-to-bad2 +# expand-env: ((yas-indent-line 'fixed)) +# -- +proc $1 ($2) ($3) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/rcondf1 b/snippets/easycrypt-mode/tactics/rcondf1 new file mode 100644 index 000000000..5b85292f2 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/rcondf1 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: rcondf1 +# key: rcondf1 +# expand-env: ((yas-indent-line 'fixed)) +# -- +rcondf{1} $1 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/rcondf2 b/snippets/easycrypt-mode/tactics/rcondf2 new file mode 100644 index 000000000..9ad128fa9 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/rcondf2 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: rcondf2 +# key: rcondf2 +# expand-env: ((yas-indent-line 'fixed)) +# -- +rcondf{2} $1 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/rcondt-rl b/snippets/easycrypt-mode/tactics/rcondt-rl new file mode 100644 index 000000000..c4a6c9246 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/rcondt-rl @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# name: rcondt-equiv +# key: rcondt-prog +# -- +rcondt {$1} $2 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/rcondt1 b/snippets/easycrypt-mode/tactics/rcondt1 new file mode 100644 index 000000000..a013f4d1c --- /dev/null +++ b/snippets/easycrypt-mode/tactics/rcondt1 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: rcondt1 +# key: rcondt1 +# expand-env: ((yas-indent-line 'fixed)) +# -- +rcondt{1} $1 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/rcondt2 b/snippets/easycrypt-mode/tactics/rcondt2 new file mode 100644 index 000000000..5364a0ada --- /dev/null +++ b/snippets/easycrypt-mode/tactics/rcondt2 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: rcondt2 +# key: rcondt2 +# expand-env: ((yas-indent-line 'fixed)) +# -- +rcondt{2} $1 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/repeat-from-to b/snippets/easycrypt-mode/tactics/repeat-from-to new file mode 100644 index 000000000..ef8bd361f --- /dev/null +++ b/snippets/easycrypt-mode/tactics/repeat-from-to @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: repeat-from-to +# key: repeat-from-to +# expand-env: ((yas-indent-line 'fixed)) +# -- +[$1..$2]!$3 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/rewrite b/snippets/easycrypt-mode/tactics/rewrite new file mode 100644 index 000000000..d174f8c72 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/rewrite @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: rewrite +# key: rewrite +# expand-env: ((yas-indent-line 'fixed)) +# -- +rewrite $1 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/rewrite-crush b/snippets/easycrypt-mode/tactics/rewrite-crush new file mode 100644 index 000000000..b0a7f9e81 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/rewrite-crush @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: rewrite-crush +# key: rewrite-crush +# expand-env: ((yas-indent-line 'fixed)) +# -- +rewrite $1 => />. \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/rewrite-expand-list b/snippets/easycrypt-mode/tactics/rewrite-expand-list new file mode 100644 index 000000000..88897f1e3 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/rewrite-expand-list @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: rewrite-expand-list +# key: rewrite-expand-list +# expand-env: ((yas-indent-line 'fixed)) +# -- +rewrite $1 !/mkseq -iotaredE => />. \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/rewrite-fun-backwards b/snippets/easycrypt-mode/tactics/rewrite-fun-backwards new file mode 100644 index 000000000..6f3ffb1e8 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/rewrite-fun-backwards @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: rewrite-lemma-backwards-args +# key: rewrite-lemma-backwards-args +# expand-env: ((yas-indent-line 'fixed)) +# -- +rewrite -($1 $2) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/rewrite-in b/snippets/easycrypt-mode/tactics/rewrite-in new file mode 100644 index 000000000..66f906759 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/rewrite-in @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: rewrite-in +# key: rewrite-in +# expand-env: ((yas-indent-line 'fixed)) +# -- +rewrite $1 in $2 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/rewrite-lemma-forwards-args b/snippets/easycrypt-mode/tactics/rewrite-lemma-forwards-args new file mode 100644 index 000000000..09c6e653d --- /dev/null +++ b/snippets/easycrypt-mode/tactics/rewrite-lemma-forwards-args @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: rewrite-lemma-forwards-args +# key: rewrite-lemma-forward-args +# expand-env: ((yas-indent-line 'fixed)) +# -- +rewrite ($1 $2). \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/rewrite-proof-term-in b/snippets/easycrypt-mode/tactics/rewrite-proof-term-in new file mode 100644 index 000000000..b45f847fe --- /dev/null +++ b/snippets/easycrypt-mode/tactics/rewrite-proof-term-in @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: rewrite-proof-term-in +# key: rewrite-proof-term-in +# expand-env: ((yas-indent-line 'fixed)) +# -- +rewrite /$1 in $2 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/rnd-f b/snippets/easycrypt-mode/tactics/rnd-f new file mode 100644 index 000000000..b5d8be11b --- /dev/null +++ b/snippets/easycrypt-mode/tactics/rnd-f @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: rnd-f +# key: rnd-f +# expand-env: ((yas-indent-line 'fixed)) +# -- +rnd ($1) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/rnd-fg b/snippets/easycrypt-mode/tactics/rnd-fg new file mode 100644 index 000000000..e248f2e27 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/rnd-fg @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: rnd-fg +# key: rnd-fg +# expand-env: ((yas-indent-line 'fixed)) +# -- +rnd ($1) ($2) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/rnd1 b/snippets/easycrypt-mode/tactics/rnd1 new file mode 100644 index 000000000..fe76423cf --- /dev/null +++ b/snippets/easycrypt-mode/tactics/rnd1 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: rnd1 +# key: rnd1 +# expand-env: ((yas-indent-line 'fixed)) +# -- +rnd{1} \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/rnd2 b/snippets/easycrypt-mode/tactics/rnd2 new file mode 100644 index 000000000..2ba7defe7 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/rnd2 @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: rnd2 +# key: rnd2 +# -- +rnd{2} \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/seq b/snippets/easycrypt-mode/tactics/seq new file mode 100644 index 000000000..a4168b527 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/seq @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: seq +# key: seq +# expand-env: ((yas-indent-line 'fixed)) +# -- +seq $1 $2 : ($3) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/sim b/snippets/easycrypt-mode/tactics/sim new file mode 100644 index 000000000..630242320 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/sim @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: sim +# key: sim +# expand-env: ((yas-indent-line 'fixed)) +# -- +sim ($1) / ($2) : ($3) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/smt b/snippets/easycrypt-mode/tactics/smt new file mode 100644 index 000000000..05af5c5f8 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/smt @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: smt +# key: smt +# expand-env: ((yas-indent-line 'fixed)) +# -- +smt(). \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/splitwhile b/snippets/easycrypt-mode/tactics/splitwhile new file mode 100644 index 000000000..48aad2d7b --- /dev/null +++ b/snippets/easycrypt-mode/tactics/splitwhile @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: splitwhile +# key: splitwhile +# expand-env: ((yas-indent-line 'fixed)) +# -- +splitwhile $1 : ($2) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/splitwhile1 b/snippets/easycrypt-mode/tactics/splitwhile1 new file mode 100644 index 000000000..125957174 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/splitwhile1 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: splitwhile1 +# key: splitwhile1 +# expand-env: ((yas-indent-line 'fixed)) +# -- +splitwhile{1} $1 : ($2) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/splitwhile2 b/snippets/easycrypt-mode/tactics/splitwhile2 new file mode 100644 index 000000000..67d2d8bba --- /dev/null +++ b/snippets/easycrypt-mode/tactics/splitwhile2 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: splitwhile2 +# key: splitwhile2 +# expand-env: ((yas-indent-line 'fixed)) +# -- +splitwhile{2} $1 : ($2) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/transitivity b/snippets/easycrypt-mode/tactics/transitivity new file mode 100644 index 000000000..a947dd17f --- /dev/null +++ b/snippets/easycrypt-mode/tactics/transitivity @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: transitivity +# key: transitivity +# expand-env: ((yas-indent-line 'fixed)) +# -- +transitivity $1 + ($2 ==> $3) + ($4 ==> $5). \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/transitivity-code b/snippets/easycrypt-mode/tactics/transitivity-code new file mode 100644 index 000000000..8ef804d8c --- /dev/null +++ b/snippets/easycrypt-mode/tactics/transitivity-code @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: transitivity-code +# key: transitivity-code +# expand-env: ((yas-indent-line 'fixed)) +# -- +transitivity{$1} {$2;} + ($2 ==> $3) + ($4 ==> $5). \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/unroll-equiv b/snippets/easycrypt-mode/tactics/unroll-equiv new file mode 100644 index 000000000..3c231fe6f --- /dev/null +++ b/snippets/easycrypt-mode/tactics/unroll-equiv @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: unroll-equiv +# key: unroll-prog +# expand-env: ((yas-indent-line 'fixed)) +# -- +unroll {$1} $2 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/unroll-while b/snippets/easycrypt-mode/tactics/unroll-while new file mode 100644 index 000000000..7df6ce4d3 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/unroll-while @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: unroll-while +# key: unroll +# expand-env: ((yas-indent-line 'fixed)) +# -- +unroll for{$1} ^while \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/while b/snippets/easycrypt-mode/tactics/while new file mode 100644 index 000000000..51039a6d3 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/while @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: while +# key: while +# expand-env: ((yas-indent-line 'fixed)) +# -- +while( + +). \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/while-true b/snippets/easycrypt-mode/tactics/while-true new file mode 100644 index 000000000..c3607d67d --- /dev/null +++ b/snippets/easycrypt-mode/tactics/while-true @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: while-true +# key: while-true +# expand-env: ((yas-indent-line 'fixed)) +# -- +while true $1 \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/while1 b/snippets/easycrypt-mode/tactics/while1 new file mode 100644 index 000000000..63e7af836 --- /dev/null +++ b/snippets/easycrypt-mode/tactics/while1 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: while1 +# key: while1 +# expand-env: ((yas-indent-line 'fixed)) +# -- +while{1} ($1) \ No newline at end of file diff --git a/snippets/easycrypt-mode/tactics/while2 b/snippets/easycrypt-mode/tactics/while2 new file mode 100644 index 000000000..48c48a16f --- /dev/null +++ b/snippets/easycrypt-mode/tactics/while2 @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: tactics +# name: while2 +# key: +# -- +while{2} ($1) \ No newline at end of file diff --git a/snippets/easycrypt-mode/theories/abstract-theory b/snippets/easycrypt-mode/theories/abstract-theory new file mode 100644 index 000000000..c08957488 --- /dev/null +++ b/snippets/easycrypt-mode/theories/abstract-theory @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: theories +# name: abstract-theory +# key: abstract-theory +# expand-env: ((yas-indent-line 'fixed)) +# -- +abstract theory $1. + + +end $1. \ No newline at end of file diff --git a/snippets/easycrypt-mode/theories/clone-as b/snippets/easycrypt-mode/theories/clone-as new file mode 100644 index 000000000..15d208805 --- /dev/null +++ b/snippets/easycrypt-mode/theories/clone-as @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: theories +# name: clone-as +# key: clone-as +# expand-env: ((yas-indent-line 'fixed)) +# -- +clone $1 as $2. \ No newline at end of file diff --git a/snippets/easycrypt-mode/theories/clone-as-with b/snippets/easycrypt-mode/theories/clone-as-with new file mode 100644 index 000000000..d8df96e78 --- /dev/null +++ b/snippets/easycrypt-mode/theories/clone-as-with @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: theories +# name: clone-as-with +# key: clone-as-with +# expand-env: ((yas-indent-line 'fixed)) +# -- +clone $1 as $2 with \ No newline at end of file diff --git a/snippets/easycrypt-mode/theories/clone-import b/snippets/easycrypt-mode/theories/clone-import new file mode 100644 index 000000000..996348d5c --- /dev/null +++ b/snippets/easycrypt-mode/theories/clone-import @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: theories +# name: clone-import +# key: clone-import +# expand-env: ((yas-indent-line 'fixed)) +# -- +clone import $1 as $2 with \ No newline at end of file diff --git a/snippets/easycrypt-mode/theories/clone-include b/snippets/easycrypt-mode/theories/clone-include new file mode 100644 index 000000000..ff08571de --- /dev/null +++ b/snippets/easycrypt-mode/theories/clone-include @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: theories +# name: clone-include +# key: clone-include +# expand-env: ((yas-indent-line 'fixed)) +# -- +clone include $1 \ No newline at end of file diff --git a/snippets/easycrypt-mode/theories/clone-no-with b/snippets/easycrypt-mode/theories/clone-no-with new file mode 100644 index 000000000..12f9c5976 --- /dev/null +++ b/snippets/easycrypt-mode/theories/clone-no-with @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# name: clone-no-with +# key: clone-no-with +# -- +clone $1 as $2. \ No newline at end of file diff --git a/snippets/easycrypt-mode/theories/rename-as b/snippets/easycrypt-mode/theories/rename-as new file mode 100644 index 000000000..42b7848d9 --- /dev/null +++ b/snippets/easycrypt-mode/theories/rename-as @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: theories +# name: rename-as +# key: rename-as +# expand-env: ((yas-indent-line 'fixed)) +# -- +rename "$1" as "$2" \ No newline at end of file diff --git a/snippets/easycrypt-mode/theories/section b/snippets/easycrypt-mode/theories/section new file mode 100644 index 000000000..5589fc6fb --- /dev/null +++ b/snippets/easycrypt-mode/theories/section @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: theories +# name: section +# key: section +# expand-env: ((yas-indent-line 'fixed)) +# -- +section. + +end section. \ No newline at end of file diff --git a/snippets/easycrypt-mode/theories/theory b/snippets/easycrypt-mode/theories/theory new file mode 100644 index 000000000..4848879d1 --- /dev/null +++ b/snippets/easycrypt-mode/theories/theory @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: theories +# name: theory +# key: theory +# expand-env: ((yas-indent-line 'fixed)) +# -- +theory $1. + + +end $1. \ No newline at end of file diff --git a/snippets/easycrypt-mode/theories/type b/snippets/easycrypt-mode/theories/type new file mode 100644 index 000000000..ce0a66e80 --- /dev/null +++ b/snippets/easycrypt-mode/theories/type @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: theories +# name: type +# key: type +# expand-env: ((yas-indent-line 'fixed)) +# -- +type $1 = $2. \ No newline at end of file diff --git a/snippets/easycrypt-mode/theories/with b/snippets/easycrypt-mode/theories/with new file mode 100644 index 000000000..81758d2a0 --- /dev/null +++ b/snippets/easycrypt-mode/theories/with @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: João Diogo Duarte +# group: theories +# name: with +# key: with +# expand-env: ((yas-indent-line 'fixed)) +# -- +with $1 => $2 \ No newline at end of file From f0048d2920b52958437b3b4b19eca56f2754c9c1 Mon Sep 17 00:00:00 2001 From: brotherbus <42229878+brotherbus@users.noreply.github.com> Date: Tue, 25 Feb 2025 04:50:21 -0500 Subject: [PATCH 77/86] moved ending point $0 in body of expressions (#506) I put the ending point for the snippet in the bodies of the expressions so that one can take as advantage of yas-wrap-around-region. --- snippets/julia-mode/begin | 17 ++++++++--------- snippets/julia-mode/do | 17 ++++++++--------- snippets/julia-mode/for | 17 ++++++++--------- snippets/julia-mode/fun | 17 ++++++++--------- snippets/julia-mode/if | 17 ++++++++--------- snippets/julia-mode/let | 17 ++++++++--------- snippets/julia-mode/macro | 17 ++++++++--------- snippets/julia-mode/module | 17 ++++++++--------- snippets/julia-mode/mutstr | 17 ++++++++--------- snippets/julia-mode/struct | 17 ++++++++--------- snippets/julia-mode/while | 17 ++++++++--------- 11 files changed, 88 insertions(+), 99 deletions(-) diff --git a/snippets/julia-mode/begin b/snippets/julia-mode/begin index 78f851e60..0bbc6732c 100644 --- a/snippets/julia-mode/begin +++ b/snippets/julia-mode/begin @@ -1,9 +1,8 @@ -# -*- mode: snippet -*- -# name: begin ... end -# key: begin -# contributor: hankail05 -# -- -begin - ${1:body} -end -$0 +# -*- mode: snippet -*- +# name: begin ... end +# key: begin +# contributor: hankail05 +# -- +begin + $0 +end \ No newline at end of file diff --git a/snippets/julia-mode/do b/snippets/julia-mode/do index 7630ffcfa..80cbabbd3 100644 --- a/snippets/julia-mode/do +++ b/snippets/julia-mode/do @@ -1,9 +1,8 @@ -# -*- mode: snippet -*- -# name: do ... ... end -# key: do -# contributor: hankail05 -# -- -do ${1:x} - ${2:body} -end -$0 \ No newline at end of file +# -*- mode: snippet -*- +# name: do ... ... end +# key: do +# contributor: hankail05 +# -- +do ${1:x} + $0 +end \ No newline at end of file diff --git a/snippets/julia-mode/for b/snippets/julia-mode/for index 8f9619f43..44067bd98 100644 --- a/snippets/julia-mode/for +++ b/snippets/julia-mode/for @@ -1,9 +1,8 @@ -# -*- mode: snippet -*- -# name: for ... ... end -# key: for -# contributor: hankail05 -# -- -for ${1:i} ${2:$$(yas-julia-iteration-keyword-choice)} ${3:1:n} - ${4:body} -end -$0 +# -*- mode: snippet -*- +# name: for ... ... end +# key: for +# contributor: hankail05 +# -- +for ${1:i} ${2:$$(yas-julia-iteration-keyword-choice)} ${3:1:n} + $0 +end \ No newline at end of file diff --git a/snippets/julia-mode/fun b/snippets/julia-mode/fun index 2abeccf1b..2235d301a 100644 --- a/snippets/julia-mode/fun +++ b/snippets/julia-mode/fun @@ -1,9 +1,8 @@ -# -*- mode: snippet -*- -# name: function(...) ... end -# key: fun -# contributor: hankail05 -# -- -function ${1:fun}(${2:args}) - ${3:body} -end -$0 \ No newline at end of file +# -*- mode: snippet -*- +# name: function(...) ... end +# key: fun +# contributor: hankail05 +# -- +function ${1:fun}(${2:args}) + $0 +end \ No newline at end of file diff --git a/snippets/julia-mode/if b/snippets/julia-mode/if index adc4ad048..632730c6f 100644 --- a/snippets/julia-mode/if +++ b/snippets/julia-mode/if @@ -1,9 +1,8 @@ -# -*- mode: snippet -*- -# name: if ... ... end -# key: if -# contributor: hankail05 -# -- -if ${1:cond} - ${2:body} -end -$0 +# -*- mode: snippet -*- +# name: if ... ... end +# key: if +# contributor: hankail05 +# -- +if ${1:cond} + $0 +end \ No newline at end of file diff --git a/snippets/julia-mode/let b/snippets/julia-mode/let index e53385cb6..6e95a85fa 100644 --- a/snippets/julia-mode/let +++ b/snippets/julia-mode/let @@ -1,9 +1,8 @@ -# -*- mode: snippet -*- -# name: let ... ... end -# key: let -# contributor: hankail05 -# -- -let ${1:x = 0} - ${2:body} -end -$0 \ No newline at end of file +# -*- mode: snippet -*- +# name: let ... ... end +# key: let +# contributor: hankail05 +# -- +let ${1:x = 0} + $0 +end \ No newline at end of file diff --git a/snippets/julia-mode/macro b/snippets/julia-mode/macro index 56b29765d..e082d4bfa 100644 --- a/snippets/julia-mode/macro +++ b/snippets/julia-mode/macro @@ -1,9 +1,8 @@ -# -*- mode: snippet -*- -# name: macro(...) ... end -# key: macro -# contributor: hankail05 -# -- -macro ${1:macro}(${2:args}) - ${3:body} -end -$0 +# -*- mode: snippet -*- +# name: macro(...) ... end +# key: macro +# contributor: hankail05 +# -- +macro ${1:macro}(${2:args}) + $0 +end \ No newline at end of file diff --git a/snippets/julia-mode/module b/snippets/julia-mode/module index 4ff4538e9..099e7f337 100644 --- a/snippets/julia-mode/module +++ b/snippets/julia-mode/module @@ -1,9 +1,8 @@ -# -*- mode: snippet -*- -# name: module ... ... end -# key: module -# contributor: hankail05 -# -- -module ${1:name} -${2:body} -end -$0 +# -*- mode: snippet -*- +# name: module ... ... end +# key: module +# contributor: hankail05 +# -- +module ${1:name} +$0 +end \ No newline at end of file diff --git a/snippets/julia-mode/mutstr b/snippets/julia-mode/mutstr index feeb3c783..e8a3f93b3 100644 --- a/snippets/julia-mode/mutstr +++ b/snippets/julia-mode/mutstr @@ -1,9 +1,8 @@ -# -*- mode: snippet -*- -# name: mutable struct ... end -# key: mutstr -# contributor: hankail05 -# -- -mutable struct ${1:name} - ${2:body} -end -$0 +# -*- mode: snippet -*- +# name: mutable struct ... end +# key: mutstr +# contributor: hankail05 +# -- +mutable struct ${1:name} + $0 +end \ No newline at end of file diff --git a/snippets/julia-mode/struct b/snippets/julia-mode/struct index b0d31e0f4..37fd6427e 100644 --- a/snippets/julia-mode/struct +++ b/snippets/julia-mode/struct @@ -1,9 +1,8 @@ -# -*- mode: snippet -*- -# name: struct ... end -# key: struct -# contributor: hankail05 -# -- -struct ${1:name} - ${2:body} -end -$0 \ No newline at end of file +# -*- mode: snippet -*- +# name: struct ... end +# key: struct +# contributor: hankail05 +# -- +struct ${1:name} + $0 +end \ No newline at end of file diff --git a/snippets/julia-mode/while b/snippets/julia-mode/while index 7a13bca1a..c613e5991 100644 --- a/snippets/julia-mode/while +++ b/snippets/julia-mode/while @@ -1,9 +1,8 @@ -# -*- mode: snippet -*- -# name: while ... ... end -# key: while -# contributor: hankail05 -# -- -while ${1:cond} - ${2:body} -end -$0 \ No newline at end of file +# -*- mode: snippet -*- +# name: while ... ... end +# key: while +# contributor: hankail05 +# -- +while ${1:cond} + $0 +end \ No newline at end of file From 46945ccf63122190dc564af4ec26f828eaa29b43 Mon Sep 17 00:00:00 2001 From: Guilherme Date: Tue, 25 Feb 2025 10:50:35 +0100 Subject: [PATCH 78/86] add import snippet to terraform-mode (#508) https://developer.hashicorp.com/terraform/language/import#syntax --- snippets/terraform-mode/import | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 snippets/terraform-mode/import diff --git a/snippets/terraform-mode/import b/snippets/terraform-mode/import new file mode 100644 index 000000000..5d793d77f --- /dev/null +++ b/snippets/terraform-mode/import @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: import +# key: import +# -- + +import { + to = "${1:to}" + id = "${2:id}" +} From aa5f9b98ba6ff8fa614b3e553cb38a6bf3c1295c Mon Sep 17 00:00:00 2001 From: quazgar Date: Wed, 7 May 2025 10:34:04 +0200 Subject: [PATCH 79/86] FIX: Python arguments. (#509) * FIX: Python arguments. This should fix #505 "Any snippet using python-args-to-docstring returns Wrong type argument: listp" and also adds type hints to the docstring again. * FIX: More relaxed regexes. * ENH: Removing `self` from python arguments in docstring. --------- Co-authored-by: Daniel --- snippets/python-mode/.yas-setup.el | 111 ++++++++++++++++++++++++++--- 1 file changed, 101 insertions(+), 10 deletions(-) diff --git a/snippets/python-mode/.yas-setup.el b/snippets/python-mode/.yas-setup.el index e9145efd7..52ea2da77 100644 --- a/snippets/python-mode/.yas-setup.el +++ b/snippets/python-mode/.yas-setup.el @@ -1,22 +1,71 @@ ;;; -*- lexical-binding: t -*- + +; Copyright (C) miscellaneous contributors, see git history +; Copyright (C) 2024 Daniel Hornung +; +; This program is free software: you can redistribute it and/or modify +; it under the terms of the GNU General Public License as +; published by the Free Software Foundation, either version 3 of the +; License, or (at your option) any later version. +; +; This program is distributed in the hope that it will be useful, +; but WITHOUT ANY WARRANTY; without even the implied warranty of +; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +; GNU General Public License for more details. +; +; You should have received a copy of the GNU General Public License +; along with this program. If not, see . + (require 'yasnippet) (defvar yas-text) -(defvar python-split-arg-arg-regex -"\\([[:alnum:]*]+\\)\\(:[[:blank:]]*[[:alpha:]]*\\)?\\([[:blank:]]*=[[:blank:]]*[[:alnum:]]*\\)?" +(defvar yas-python-regex-identifier "[[:alnum:]_]+" "Simplified Python identifier.") +(defvar yas-python-regex-quoted-or-identifier (concat + "\\(" + yas-python-regex-identifier + "\\)" + "\\|" "\".*\"" + "\\|" "'.*'" + ) + "Simplified Python identifier or quoted string. +Does not work well with multiple or escaped quotes") + +(defvar python-split-arg-regex + (concat + "\\(" yas-python-regex-identifier "\\)" ; name + "\\(:[[:blank:]]*\\([][:alpha:]_[]*\\)\\)?" ; type + "\\([[:blank:]]*=[[:blank:]]*\\(" + yas-python-regex-quoted-or-identifier ; default + "\\)\\)?" + ) "Regular expression matching an argument of a python function. -First group should give the argument name.") +Groups: +- 1: the argument name +- 3: the type +- 5: the default value") (defvar python-split-arg-separator "[[:space:]]*,[[:space:]]*" "Regular expression matching the separator in a list of argument.") (defun python-split-args (arg-string) - "Split a python argument string ARG-STRING into a tuple of argument names." - (mapcar (lambda (x) - (when (string-match python-split-arg-arg-regex x) - (match-string-no-properties 1 x))) - (split-string arg-string python-split-arg-separator t))) + "Split python argument string ARG-STRING. + +The result is a list ((name, type, default), ...) of argument names, types and +default values. An argument named `self` is omitted." + (remove + nil + (mapcar (lambda (x) ; organize output + (when (and + (not (equal "self" x)) + (string-match python-split-arg-regex x) + ) + (list + (match-string-no-properties 1 x) ; name + (match-string-no-properties 3 x) ; type + (match-string-no-properties 5 x) ; default + ))) + (split-string arg-string python-split-arg-separator t)))) (defun python-args-to-docstring () "Return docstring format for the python arguments in yas-text." @@ -26,7 +75,9 @@ First group should give the argument name.") (formatted-args (mapconcat (lambda (x) (concat (nth 0 x) (make-string (- max-len (length (nth 0 x))) ? ) " -- " - (if (nth 1 x) (concat "\(default " (nth 1 x) "\)")))) + (if (nth 1 x) (concat (nth 1 x) ": ")) + (if (nth 2 x) (concat "\(default " (nth 2 x) "\)")) + )) args indent))) (unless (string= formatted-args "") @@ -36,7 +87,11 @@ First group should give the argument name.") "return docstring format for the python arguments in yas-text" (let* ((args (python-split-args yas-text)) (format-arg (lambda(arg) - (concat (nth 0 arg) " : " (if (nth 1 arg) ", optional") "\n"))) + (concat (nth 0 arg) " : " ; name + (if (nth 1 arg) (nth 1 arg)) ; type TODO handle Optional[Foo] correctly + (if (nth 2 arg) (concat (when (nth 1 arg) ", ") + "default=" (nth 2 arg))) ; default + "\n"))) (formatted-params (mapconcat format-arg args "\n")) (formatted-ret (mapconcat format-arg (list (list "out")) "\n"))) (unless (string= formatted-params "") @@ -44,3 +99,39 @@ First group should give the argument name.") (list "\nParameters\n----------" formatted-params "\nReturns\n-------" formatted-ret) "\n")))) + + +;; Tests + +(ert-deftest test-split () + "For starters, only test a single string for expected output." + (should (equal + (python-split-args "_foo='this', bar: int = 2, baz: Optional[My_Type], foobar") + (list '("_foo" nil "'this'") + '("bar" "int" "2") + '("baz" "Optional[My_Type]" nil) + '("foobar" nil nil))) + )) + +(ert-deftest test-argument-self () + "If an argument is called `self`, it must be omitted" + (should (equal + (python-split-args "self, _foo=\"this\"") + (list '("_foo" nil "\"this\"") + )) + )) + +;; For manual testing and development: + +;; (setq yas-text "foo=3, bar: int = 2, baz: Optional[MyType], foobar") +;; (split-string yas-text python-split-arg-separator t) +;; +;; (save-match-data +;; (setq my-string "_foo: my_bar = 'this'") +;; (string-match python-split-arg-regex my-string) +;; (match-string 5 my-string) +;; ) +;; +;; (python-split-args yas-text) +;; (python-args-to-docstring) +;; (python-args-to-docstring-numpy) From 48e968d555afe8bf64829da364d5c8915980cc32 Mon Sep 17 00:00:00 2001 From: Andrea Crotti Date: Wed, 7 May 2025 21:02:29 +0100 Subject: [PATCH 80/86] comment out tests for no --- snippets/python-mode/.yas-setup.el | 33 +++++++++++++++--------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/snippets/python-mode/.yas-setup.el b/snippets/python-mode/.yas-setup.el index 52ea2da77..3029c80e4 100644 --- a/snippets/python-mode/.yas-setup.el +++ b/snippets/python-mode/.yas-setup.el @@ -102,24 +102,23 @@ default values. An argument named `self` is omitted." ;; Tests +;; (ert-deftest test-split () +;; "For starters, only test a single string for expected output." +;; (should (equal +;; (python-split-args "_foo='this', bar: int = 2, baz: Optional[My_Type], foobar") +;; (list '("_foo" nil "'this'") +;; '("bar" "int" "2") +;; '("baz" "Optional[My_Type]" nil) +;; '("foobar" nil nil))) +;; )) -(ert-deftest test-split () - "For starters, only test a single string for expected output." - (should (equal - (python-split-args "_foo='this', bar: int = 2, baz: Optional[My_Type], foobar") - (list '("_foo" nil "'this'") - '("bar" "int" "2") - '("baz" "Optional[My_Type]" nil) - '("foobar" nil nil))) - )) - -(ert-deftest test-argument-self () - "If an argument is called `self`, it must be omitted" - (should (equal - (python-split-args "self, _foo=\"this\"") - (list '("_foo" nil "\"this\"") - )) - )) +;; (ert-deftest test-argument-self () +;; "If an argument is called `self`, it must be omitted" +;; (should (equal +;; (python-split-args "self, _foo=\"this\"") +;; (list '("_foo" nil "\"this\"") +;; )) +;; )) ;; For manual testing and development: From fba6349bdd0b1953eefaffe862b56a3b41d6dc83 Mon Sep 17 00:00:00 2001 From: Andrea Crotti Date: Thu, 12 Jun 2025 16:04:26 +0100 Subject: [PATCH 81/86] clojure workflow --- .github/workflows/clojure.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/clojure.yml b/.github/workflows/clojure.yml index 24e844b7a..8e56a3ceb 100644 --- a/.github/workflows/clojure.yml +++ b/.github/workflows/clojure.yml @@ -8,10 +8,21 @@ on: jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + - name: Setup Java + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '21' + + - name: Install Clojure Tools + uses: DeLaGuardo/setup-clojure@13.4 + with: + cli: latest + lein: latest + - name: generate html report run: cd report && lein run From 952a02763cd4855b15e3b2999a0b029670fdfa99 Mon Sep 17 00:00:00 2001 From: Andrea Crotti Date: Thu, 12 Jun 2025 16:05:34 +0100 Subject: [PATCH 82/86] fix indentation --- .github/workflows/clojure.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/clojure.yml b/.github/workflows/clojure.yml index 8e56a3ceb..ee2b2646c 100644 --- a/.github/workflows/clojure.yml +++ b/.github/workflows/clojure.yml @@ -12,17 +12,17 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Setup Java - uses: actions/setup-java@v3 - with: - distribution: 'temurin' - java-version: '21' + - name: Setup Java + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '21' - - name: Install Clojure Tools - uses: DeLaGuardo/setup-clojure@13.4 - with: - cli: latest - lein: latest + - name: Install Clojure Tools + uses: DeLaGuardo/setup-clojure@13.4 + with: + cli: latest + lein: latest - name: generate html report run: cd report && lein run From 5f06fa8bce2e3cf58747cfd5fbc759e83f1072e9 Mon Sep 17 00:00:00 2001 From: Andrea Crotti Date: Thu, 12 Jun 2025 16:13:18 +0100 Subject: [PATCH 83/86] table --- README.md | 1 + report/src/core.clj | 15 +++++++-------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 438da6684..2ea7d58c8 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ This repository contains the official collection of snippets for [yasnippet](http://github.com/capitaomorte/yasnippet). +You can see a genreated table of all snippets [here](https://andreacrotti.pro/yasnippet-snippets/snippets). # How to install diff --git a/report/src/core.clj b/report/src/core.clj index 7f42f342e..4c9278ab9 100644 --- a/report/src/core.clj +++ b/report/src/core.clj @@ -116,11 +116,10 @@ (comment (def all-modes (all-modes "../snippets")) (doseq [[mode ss] all-modes] - (do - (print "mode =" mode) - (let [grouped - (->> (group-by :name ss) - (filter #(> (count (second %)) 1)))] - (doseq [[g vs] grouped] - (when (pos? (count vs)) - (println g (map :filename vs)))))))) + (print "mode =" mode) + (let [grouped + (->> (group-by :name ss) + (filter #(> (count (second %)) 1)))] + (doseq [[g vs] grouped] + (when (pos? (count vs)) + (println g (map :filename vs))))))) From f2fdb1693719ec906c683037c5031ca1f3230d91 Mon Sep 17 00:00:00 2001 From: Andrea Crotti Date: Thu, 12 Jun 2025 16:18:30 +0100 Subject: [PATCH 84/86] fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2ea7d58c8..ab6a09bd2 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ This repository contains the official collection of snippets for [yasnippet](http://github.com/capitaomorte/yasnippet). -You can see a genreated table of all snippets [here](https://andreacrotti.pro/yasnippet-snippets/snippets). +You can see a generated table of all snippets [here](https://andreacrotti.pro/yasnippet-snippets/snippets). # How to install From ecc90b8322a4944f94b2a47551065965dfbf29a2 Mon Sep 17 00:00:00 2001 From: Chris Narkiewicz Date: Fri, 8 Aug 2025 09:17:50 +0100 Subject: [PATCH 85/86] Generate UUID in org-mode (#519) --- snippets/org-mode/uuid | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 snippets/org-mode/uuid diff --git a/snippets/org-mode/uuid b/snippets/org-mode/uuid new file mode 100644 index 000000000..3db996dba --- /dev/null +++ b/snippets/org-mode/uuid @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: generate uuid +# key: uuid_ +# -- +`(org-id-uuid)` \ No newline at end of file From 4f9f9e7b29822d66a34b7d5f1c19ed65cce1d8e1 Mon Sep 17 00:00:00 2001 From: Yudi Matsuzake Date: Fri, 8 Aug 2025 05:19:58 -0300 Subject: [PATCH 86/86] improve conversion from header file name to once macro (#518) --- snippets/c-lang-common/once | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/c-lang-common/once b/snippets/c-lang-common/once index f320e7d89..fa274d81b 100644 --- a/snippets/c-lang-common/once +++ b/snippets/c-lang-common/once @@ -2,7 +2,7 @@ # name: #ifndef XXX; #define XXX; #endif # key: once # -- -#ifndef ${1:`(upcase (file-name-nondirectory (file-name-sans-extension (or (buffer-file-name) ""))))`_H} +#ifndef ${1:`(upcase (replace-regexp-in-string "[^A-Za-z0-9_]" "_" (file-name-nondirectory (or (buffer-file-name)))))`} #define $1 $0