From feae407fdf39253cdd41b24c29f8a07eab6050bd Mon Sep 17 00:00:00 2001 From: hikerpig Date: Mon, 3 Feb 2020 17:58:28 +0800 Subject: [PATCH] feat: Add 'flags' field to SnippetDefinition --- packages/core/src/type.ts | 2 ++ packages/ultisnips/src/parse/index.ts | 2 -- packages/ultisnips/src/parse/ultisnips.ts | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/core/src/type.ts b/packages/core/src/type.ts index 2d6c6b3..235847e 100644 --- a/packages/core/src/type.ts +++ b/packages/core/src/type.ts @@ -7,6 +7,8 @@ export interface SnippetDefinition { trigger: string description: string body: string + /** aka 'options' in ultisnips */ + flags: string /** * position inside source file */ diff --git a/packages/ultisnips/src/parse/index.ts b/packages/ultisnips/src/parse/index.ts index 44feddd..a4705f6 100644 --- a/packages/ultisnips/src/parse/index.ts +++ b/packages/ultisnips/src/parse/index.ts @@ -20,8 +20,6 @@ import { TextPosition } from '../util/position' interface UltiSnippet extends SnippetDefinition { code: Array - /** aka 'options' */ - flags: string } enum ReadState { diff --git a/packages/ultisnips/src/parse/ultisnips.ts b/packages/ultisnips/src/parse/ultisnips.ts index 08945a5..5ec2fa2 100644 --- a/packages/ultisnips/src/parse/ultisnips.ts +++ b/packages/ultisnips/src/parse/ultisnips.ts @@ -22,7 +22,6 @@ import { SnippetInstance, Visual, ScriptCode, - Transform, TransformableMarker, UniSnipsVariable, } from '../marker'