Fix string fontification in csharp-mode
A temporary fix for josteink/csharp-mode#151
This commit is contained in:
parent
0abbf73b07
commit
4d77314df2
1 changed files with 9 additions and 1 deletions
|
@ -13,7 +13,15 @@
|
||||||
:post-handlers '(("| " "SPC")))
|
:post-handlers '(("| " "SPC")))
|
||||||
|
|
||||||
(when (featurep! +lsp)
|
(when (featurep! +lsp)
|
||||||
(add-hook 'csharp-mode-local-vars-hook #'lsp!)))
|
(add-hook 'csharp-mode-local-vars-hook #'lsp!))
|
||||||
|
|
||||||
|
(defadvice! +csharp-disable-clear-string-fences-a (orig-fn &rest args)
|
||||||
|
"This turns off `c-clear-string-fences' for `csharp-mode'. When
|
||||||
|
on for `csharp-mode' font lock breaks after an interpolated string
|
||||||
|
or terminating simple string."
|
||||||
|
:around #'csharp-disable-clear-string-fences
|
||||||
|
(unless (eq major-mode 'csharp-mode)
|
||||||
|
(apply orig-fn args))))
|
||||||
|
|
||||||
|
|
||||||
(use-package! omnisharp
|
(use-package! omnisharp
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue