Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 870467c

Browse files
committed
Add a test
1 parent 3f8fa33 commit 870467c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

spec/python-spec.coffee

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,3 +750,10 @@ describe "Python grammar", ->
750750
expect(tokens[13]).toEqual value: ')', scopes: ['source.python', 'string.quoted.double.single-line.sql.python', 'meta.embedded.sql', 'punctuation.definition.section.bracket.round.end.sql']
751751
expect(tokens[15]).toEqual value: '"', scopes: ['source.python', 'string.quoted.double.single-line.sql.python', 'punctuation.definition.string.end.python']
752752
expect(tokens[17]).toEqual value: '%', scopes: ['source.python', 'keyword.operator.arithmetic.python']
753+
754+
it "recognizes DELETE as an HTTP method", ->
755+
{tokens} = grammar.tokenizeLine('"DELETE /api/v1/endpoint"')
756+
757+
expect(tokens[0]).toEqual value: '"', scopes: ['source.python', 'string.quoted.single.single-line.python', 'punctuation.definition.string.begin.python']
758+
expect(tokens[1]).toEqual value: 'DELETE /api/v1/endpoint', scopes: ['source.python', 'string.quoted.single.single-line.python']
759+
expect(tokens[2]).toEqual value: '"', scopes: ['source.python', 'string.quoted.single.single-line.python', 'punctuation.definition.string.end.python']

0 commit comments

Comments
 (0)