Skip to content

Commit

Permalink
feat: word pattern
Browse files Browse the repository at this point in the history
- accept dash as part of identifiers
- accept paths as words
  • Loading branch information
mkhl authored and jnoortheen committed Dec 10, 2021
1 parent bab9fdf commit d1389f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,6 @@
"start": "^\\s*#\\s*#?region\\b",
"end": "^\\s*#\\s*#?endregion\\b"
}
}
},
"wordPattern": "(-?\\d*\\.\\d\\w*)|((~|[^\\`\\~\\!\\@\\#\\%\\^\\&\\*\\(\\)\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\<\\>\\/\\?\\s]+)/[^\\`\\~\\!\\@\\#\\%\\^\\&\\*\\(\\)\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\<\\>\\?\\s]+)|([^\\`\\~\\!\\@\\#\\%\\^\\&\\*\\(\\)\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\?\\s]+)"
}

0 comments on commit d1389f6

Please sign in to comment.