Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax: Fix testcase scope completion #302

Merged

Conversation

deathaxe
Copy link
Member

This commit fixes an issue which causes wrong selectors to be suggested, when typing following test cases:

// <-|
## <-|

Note: | denotes the caret.

The reason is the caret's column being used to extract scope names instead of the one from the calculated assertion range. The assertion's column is the one of the first character of the comment punctuation.

before this commit:

</style>
## <- meta.tag.style.end.html entity.name.tag.style.html

with this commit:

</style>
## <-  meta.tag.style.end.html punctuation.definition.tag.begin.html

This commit fixes an issue which causes wrong selectors to be suggested,
when typing following test cases:

  // <-|
  ## <-|

  Note: | denotes to the caret.

The reason is the caret's column being used to extract scope names
instead of the one from the calculated assertion range. The assertion's
column is the one of the first character of the comment punctuation.

before this commit:

    </style>
    ## <- meta.tag.style.end.html entity.name.tag.style.html

with this commit:

    </style>
    ## <-  meta.tag.style.end.html punctuation.definition.tag.begin.html
@deathaxe deathaxe force-pushed the pr/syntax/fix-testscope-completion branch from baea0d8 to 9f47253 Compare July 25, 2020 17:47
@FichteFoll FichteFoll merged commit 09ebd12 into SublimeText:master Jul 26, 2020
@FichteFoll FichteFoll added this to the 3.2.17 milestone Jul 26, 2020
@deathaxe deathaxe deleted the pr/syntax/fix-testscope-completion branch July 26, 2020 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants