diff options
| author | Ben Sima <ben@bensima.com> | 2025-12-22 20:45:12 -0500 |
|---|---|---|
| committer | Ben Sima <ben@bensima.com> | 2025-12-22 20:45:12 -0500 |
| commit | 3f8d69dfa6d680e328cbc218cbb20327e506722b (patch) | |
| tree | 4526191e2fd8cda794c27796419cdc4cf051a790 /Omni/Namespace.hs | |
| parent | 99fe1c1cd540aea8054efe4f162e858df658d016 (diff) | |
Omni/Namespace,Bild: add support for .ctags files
- Add Ctags extension type to Namespace.Ext
- Allow dots in namespace path components for .ctags.d directories
- Mark ctags files as non-buildable in bild
- Fixes CI failure when processing .ctags.d/base.ctags
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'Omni/Namespace.hs')
| -rw-r--r-- | Omni/Namespace.hs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Omni/Namespace.hs b/Omni/Namespace.hs index a0f8a8e..ddbd1f1 100644 --- a/Omni/Namespace.hs +++ b/Omni/Namespace.hs @@ -33,6 +33,7 @@ import qualified Text.Regex.Applicative as Regex data Ext = C + | Ctags | Css | Hs | Html @@ -69,6 +70,7 @@ toExt :: Ext -> String toExt = ("." <>) <. \case C -> "c" + Ctags -> "ctags" Css -> "css" Hs -> "hs" Html -> "html" @@ -130,7 +132,7 @@ name = Regex.many (Regex.psym Char.isUpper) <> ( Regex.many <| Regex.psym - <| \c -> Char.isAlphaNum c || c == '_' || c == '-' + <| \c -> Char.isAlphaNum c || c == '_' || c == '-' || c == '.' ) rePath :: Regex.RE Char [String] @@ -140,6 +142,8 @@ reExt :: Regex.RE Char Ext reExt = C <$ Regex.string "c" + <|> Ctags + <$ Regex.string "ctags" <|> Css <$ Regex.string "css" <|> Hs |
