summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJade Lovelace <software@lfcode.ca>2022-09-18 12:54:18 -0700
committerStephan Seitz <stephan.seitz@fau.de>2022-09-27 21:38:16 -0400
commitaa736f5f36de0c8196534497c47e0d1f614c311d (patch)
tree97fa03283a67eed449583acb3c3db3b769985cc5
parent0289160c963fac1d0330966a798acacf85a43a88 (diff)
haskell/highlights: Match `pattern` as a keyword
Sample: -- | Smart constructor that deduplicates plugins pattern IdePlugins :: [PluginDescriptor ideState] -> IdePlugins ideState pattern IdePlugins{ipMap} <- IdePlugins_ (sortOn (Down . pluginPriority) . HashMap.elems -> ipMap) _ where IdePlugins ipMap = IdePlugins_{ipMap_ = HashMap.fromList $ (pluginId &&& id) <$> ipMap , lookupCommandProvider = lookupPluginId ipMap }
-rw-r--r--queries/haskell/highlights.scm1
1 files changed, 1 insertions, 0 deletions
diff --git a/queries/haskell/highlights.scm b/queries/haskell/highlights.scm
index 06f59b5f..c37c33b3 100644
--- a/queries/haskell/highlights.scm
+++ b/queries/haskell/highlights.scm
@@ -81,6 +81,7 @@
"in"
"class"
"instance"
+ "pattern"
"data"
"newtype"
"family"