You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Found an interesting extension that can improve the situation mentioned in #3731 although it is not the sustainable solution:
Settings:
"highlight.regexes": {
"(\\bimport\\s+(?:\\w+(?:\\.\\w+)*(?:\\s*,\\s*)?)+|\\bfrom\\s+\\w+(?:\\.\\w+)*\\s+import\\s+(?:\\w+(?:\\s*,\\s*)?)+|\\bas\\s+\\w+)": {
"regexFlags": "g",
"filterLanguageRegex": ".*",
"filterFileRegex": "\\.qmd$",
"decorations": [
{ "color": "#e5c07b" }
]
},
"(?<!\\bself\\.)(\\b\\w+\\b(?=\\.(?:\\w+\\s*\\())|(?<=\\bfrom\\s+)[\\w.]+(?=\\s+import))": {
"regexFlags": "g",
"filterLanguageRegex": ".*",
"filterFileRegex": "\\.qmd$",
"decorations": [
{ "color": "#e5c07b" }
]
},
"(#\\|.*)": { // This regex matches comments starting with #|"regexFlags": "g", // Global flag to match all instances"filterLanguageRegex": ".*", // Apply to all languages"filterFileRegex": ".*", // Apply to all files"decorations": [ // Decoration options to apply to the capturing groups
{ "color": "#b38c31" } // Decoration options to apply to the entire comment starting with #|
]
}
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Found an interesting extension that can improve the situation mentioned in #3731 although it is not the sustainable solution:
Settings:
Output:
Beta Was this translation helpful? Give feedback.
All reactions