Skip to content

Commit

Permalink
feat: Add 'flags' field to SnippetDefinition
Browse files Browse the repository at this point in the history
  • Loading branch information
hikerpig committed Feb 3, 2020
1 parent 8a59fee commit feae407
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions packages/core/src/type.ts
Expand Up @@ -7,6 +7,8 @@ export interface SnippetDefinition {
trigger: string
description: string
body: string
/** aka 'options' in ultisnips */
flags: string
/**
* position inside source file
*/
Expand Down
2 changes: 0 additions & 2 deletions packages/ultisnips/src/parse/index.ts
Expand Up @@ -20,8 +20,6 @@ import { TextPosition } from '../util/position'

interface UltiSnippet extends SnippetDefinition {
code: Array<string>
/** aka 'options' */
flags: string
}

enum ReadState {
Expand Down
1 change: 0 additions & 1 deletion packages/ultisnips/src/parse/ultisnips.ts
Expand Up @@ -22,7 +22,6 @@ import {
SnippetInstance,
Visual,
ScriptCode,
Transform,
TransformableMarker,
UniSnipsVariable,
} from '../marker'
Expand Down

0 comments on commit feae407

Please sign in to comment.