Skip to content

syntax: leading and trailing periods / dots not tokenized as part of identifier #19

Description

@kevinushey

Given an R document with the code:

.hello.world.

The leading + trailing .s are tokenized as separate entities.

Screen Shot 2022-08-25 at 4 37 25 PM

I believe the use of \b here forces VSCode to consider . as a word boundary, and so it fails to tokenize the whole identifier as a single token:

https://github.com/REditorSupport/vscode-R/blob/da579cc17a9485f7a11bf5e75bf6b9c347eca116/syntax/r.json#L165-L168

If so, I think those \bs can be safely removed?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions