Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions fsharp-mode-font.el
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ with initial value INITVALUE and optional DOCSTRING."
"Match the full range of pipe operators -- |>, ||>, |||>, etc.")

(def-fsharp-compiled-var fsharp-operator-case-regexp
"\\s-*\\(|\\)[A-Za-z0-9_' ]"
"\\s-+\\(|\\)[A-Za-z0-9_' ]"
"Match literal | in contexts like match and type declarations.")

(defvar fsharp-imenu-generic-expression
Expand Down Expand Up @@ -283,17 +283,16 @@ with initial value INITVALUE and optional DOCSTRING."
(,fsharp-type-def-regexp 1 font-lock-type-face)
(,fsharp-function-def-regexp 1 font-lock-function-name-face)
(,fsharp-pattern-function-regexp 1 font-lock-function-name-face)
;; (,fsharp-active-pattern-regexp 1 font-lock-function-name-face)
;; Active records
("(|" (0 'fsharp-ui-operator-face)
("\\([A-Za-z'_]+\\)\\(|)?\\)" nil nil
("\\([A-Za-z'_]+\\)\\(|)\\)" nil nil
(1 font-lock-function-name-face)
(2 'fsharp-ui-operator-face)))
(,fsharp-operator-pipe-regexp . 'fsharp-ui-operator-face)
(,fsharp-member-function-regexp 1 font-lock-function-name-face)
(,fsharp-overload-operator-regexp 1 font-lock-function-name-face)
(,fsharp-constructor-regexp 1 font-lock-function-name-face)
(,fsharp-operator-case-regexp 1 'fsharp-ui-operator-face)
(,fsharp-operator-pipe-regexp . 'fsharp-ui-operator-face)

(,fsharp-operator-quote-regexp (1 'fsharp-ui-operator-face)
(2 'fsharp-ui-operator-face))
("[^:]:\\s-*\\(\\<[A-Za-z0-9_' ]*[^ ;\n,)}=<-]\\)\\(<[^>]*>\\)?"
Expand Down
4 changes: 2 additions & 2 deletions test/apps/FQuake3/NativeMappings.fs.faceup
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ Copyright (C) 1999-2005 Id Software, Inc.
«k:module» «t:Bounds» =
«k:let» «k:inline» «f:ofNativePtr» («v:ptr»: «t:nativeptr»«:fsharp-ui-generic-face:<vec3_t>») =
Bounds (
Vec3.ofNativePtr <«:fsharp-ui-operator-face:|» NativePtr.add ptr 0,
Vec3.ofNativePtr <«:fsharp-ui-operator-face:|» NativePtr.add ptr 1)
Vec3.ofNativePtr «:fsharp-ui-operator-face:<|» NativePtr.add ptr 0,
Vec3.ofNativePtr «:fsharp-ui-operator-face:<|» NativePtr.add ptr 1)

«k:let» «k:inline» «f:toNativeByPtr» («v:ptr»: «t:nativeptr»«:fsharp-ui-generic-face:<vec3_t>») («v:bounds»: «t:Bounds») =
«k:let» «k:mutable» «v:nativeX» = NativePtr.get ptr 0
Expand Down