Skip to content

Commit

Permalink
Turns out, you can also skip the parens
Browse files Browse the repository at this point in the history
I've just learned it's also valid to have attributes like WebSharper's
`[<EndPoint "/home">]` syntax. So -- a minor update to allow the optional space
and parens.
  • Loading branch information
Gastove authored and juergenhoetzel committed Feb 9, 2019
1 parent e5bd7cb commit 30b53fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fsharp-mode-font.el
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ with initial value INITVALUE and optional DOCSTRING."
"\\([A-Za-z_][A-Za-z0-9_']*\\)\\s-*:\\s-*\\([A-Za-z_][A-Za-z0-9_'<> \t]*\\)"))

(def-fsharp-compiled-var fsharp-attributes-regexp
"\\(\\[<[A-Za-z0-9_]+(?\\)\\(\".*\"\\)?\\()?>\\]\\)"
"\\(\\[<[A-Za-z0-9_]+[( ]?\\)\\(\".*\"\\)?\\()?>\\]\\)"
"Match attributes like [<EntryPoint>]; separately groups contained strings in attributes like [<Attribute(\"property\")>]")

;; F# makes extensive use of operators, many of which have some kind of
Expand Down

0 comments on commit 30b53fb

Please sign in to comment.