From 3e1bb265fd0d8ff035c7bf26a6ffdd78b5f9982a Mon Sep 17 00:00:00 2001 From: Thierry Delafontaine Date: Tue, 10 May 2022 15:36:20 +0200 Subject: [PATCH] Add InES header snippets for latex files. --- README.md | 10 +++++++--- package.json | 17 +++++++++++++++-- snippets/latex.json | 17 +++++++++++++++++ 3 files changed, 39 insertions(+), 5 deletions(-) create mode 100644 snippets/latex.json diff --git a/README.md b/README.md index 3a53458..7ad2778 100644 --- a/README.md +++ b/README.md @@ -54,9 +54,9 @@ require("luasnip.loaders.from_vscode").lazy_load() ## Snippets -| Snippet | Purpose | Available in | -| ------- | -------------------- | ------------ | -| `inesh` | The InES file header | c, cpp, vhdl | +| Snippet | Purpose | Available in | +| ------- | -------------------- | ------------------- | +| `inesh` | The InES file header | c, cpp, vhdl, latex | ## Resources @@ -71,3 +71,7 @@ Users appreciate release notes as you update your extension. ### 1.0.0 Initial release of zhaw-snippets + +### 1.0.1 + +Added header snippet for latex diff --git a/package.json b/package.json index 620edbc..10983fb 100644 --- a/package.json +++ b/package.json @@ -3,12 +3,12 @@ "displayName": "ZHAW Snippets", "description": "A collection of ZHAW related snippets", "icon": "imgs/zhaw.png", - "version": "1.0.0", + "version": "1.0.1", "publisher": "InES-HPMM", "engines": { "vscode": "^1.64.0" }, - "license": "MIT", + "license": "MIT", "repository": { "type": "git", "url": "https://github.com/InES-HPMM/zhaw-snippets" @@ -34,10 +34,23 @@ "language": "cpp", "path": "./snippets/cpp.json" }, + { + "language": "latex", + "path": "./snippets/latex.json" + }, + { + "language": "tex", + "path": "./snippets/latex.json" + }, { "language": "vhdl", "path": "./snippets/vhdl.json" } ] + }, + "dependencies": { + "generator-code": "^1.6.10", + "vsce": "^2.7.0", + "yo": "^4.3.0" } } diff --git a/snippets/latex.json b/snippets/latex.json new file mode 100644 index 0000000..c604eff --- /dev/null +++ b/snippets/latex.json @@ -0,0 +1,17 @@ +{ + "zhawh": { + "prefix": "inesh", + "body": [ + "% ------------------------------------------------------------------", + "% -- _____ ______ _____ --", + "% -- |_ _| | ____|/ ____| --", + "% -- | | _ __ | |__ | (___ Institute of Embedded Systems --", + "% -- | | | '_ \\| __| \\___ \\ Zurich University of --", + "% -- _| |_| | | | |____ ____) | Applied Sciences --", + "% -- |_____|_| |_|______|_____/ 8401 Winterthur, Switzerland --", + "% ------------------------------------------------------------------", + "$0" + ], + "description": "The InES file header" + } +}