diff --git a/src/Components/LanguageConfiguration.fs b/src/Components/LanguageConfiguration.fs index 1c7afd73..a0946915 100644 --- a/src/Components/LanguageConfiguration.fs +++ b/src/Components/LanguageConfiguration.fs @@ -12,10 +12,10 @@ module LanguageConfiguration = jsOptions (fun o -> o.increaseIndentPattern <- Regex( - """^(\s*(module|type|let|static member|member)\b.*=\s*)$|^(\s*(with get|and set)\b.*=.*)$|^(\s*(if|elif|then|else|static member|member)).*$""" + """^(\s*(module|type|let|static member|member)\b.*=\s*)$|^(\s*(with get|and set)\b.*=.*)$|^(\s*(if|elif|then|else|static member|member|\(\*)).*$""" ) - o.decreaseIndentPattern <- Regex("""^(\s*(else|elif|and)).*$""")) + o.decreaseIndentPattern <- Regex("""^(\s*(else|elif|and|\*\))).*$""")) let setLanguageConfiguration (triggerNotification: bool) = // Config always setted @@ -33,9 +33,7 @@ module LanguageConfiguration = action.indentAction <- IndentAction.None action.appendText <- Some "/// ") - rule.beforeText <- Regex("^\s*\/{3}.*$")) - - |] + rule.beforeText <- Regex("^\s*\/{3}.*$")) |] )) let activateSmartIndent = "FSharp.smartIndent" |> Configuration.get false