Skip to content

[BUG] Using periods in labels #96

@nlehmanDLC

Description

@nlehmanDLC

I'm using VS Code 1.44 on Windows Server 2016. I'm using version 2.0.6 of MV Basic.

I often use periods to separate words in my labels. For example:

* Some method SOME.METHOD: FOO = BAR; RETURN 

When I run the code format, it does not recognize these as labels.

What I end up doing is changing your regex found in client\out\extension.js to:

let rLabel = new RegExp("(^[0-9]+\\s)|(^[0-9]+:\\s)|(^[\\w.]+:)");

I have to do this each time you put out a new version of your extension. It's no big deal but this time was a little bit of a pain since it was minified.

Would it be ok to add periods in the label regex or maybe an option that would let the user over-ride with their own regex?

Thanks so much for this extension. It has helped me so much!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions