tintinweb / vscode-inline-bookmarks

Customizable inline Bookmarks for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=tintinweb.vscode-inline-bookmarks
GNU General Public License v3.0
45 stars 14 forks source link

Simple proposal: please add `\\r` to the default regex settings (`"…[ \\t\\n$]"`) #46

Closed schittli closed 2 years ago

schittli commented 2 years ago

Hello

thank you very much for sharing your great work!

I have a simple suggestion: The default config uses this regex to match words: "…[ \\t\\n$]" Depending on the File-Type (Linux, MacOS, Windows), this RegEx does not match.

Therefore I propose to add \r to get: "…[ \\t\\r\\n$]"

Thanks a lot, kind regards, Thomas

tintinweb commented 2 years ago

switching to @audit\-info[\s] should do the trick in almost all cases (except if the tag is right at the EOF).