Skip to content
Snippets Groups Projects
Commit cd76bf96 authored by James Yu's avatar James Yu
Browse files

Fix #4400 Prioritize `\(`, give `|` an order

parent 097d3816
No related branches found
No related tags found
No related merge requests found
......@@ -424,7 +424,8 @@ function entryCmdToCompletion(item: MacroRaw, packageName?: string, postAction?:
.replace(/([a-z])/g, '$10').toLowerCase()
.replaceAll('{', '0')
.replaceAll('[', '1')
.replaceAll('(', '2')
.replace(/^(.+?)\(/g, '$12') // Skip \(
.replaceAll('|', '3')
.replaceAll('*', '9')
if (postAction) {
suggestion.command = { title: 'Post-Action', command: postAction }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment