gabriel / musehub public
feat minor task/dotfile-syntax-highlighting #1 / 1
gabriel · 166 days ago · Apr 13, 2026 · Diff

feat: toml/bats syntax highlighting + dotfile language detection (.museattributes, .museignore)

sha256:def0a47f2f64f2b0ca369a36767323c6aac2a774212b3655c2c5ada72bc69f35 sha
+16 ~4 symbols
sha256:8d58745980df451df24a3c232c73dd89c998b314c8fb08a3206d8f4b2769fb8a snapshot
+16
symbols added
~4
symbols modified
0
dead code introduced
Semantic Changes 20 symbols
+ deploy
+ docs
+ src
+ src/ts
+ tests
+ tools
~ tests/test_blob_language_detection.py .py 14 symbols added
+ TestDetectLanguage class class TestDetectLanguage L22–51
+ test_detects_bash_by_bats_extension method method test_detects_bash_by_bats_extension L32–33
+ test_detects_bash_by_sh_extension method method test_detects_bash_by_sh_extension L29–30
+ test_detects_muse_config_toml_as_toml method method test_detects_muse_config_toml_as_toml L44–45
+ test_detects_museattributes_as_toml method method test_detects_museattributes_as_toml L35–36
+ test_detects_museignore_as_plaintext method method test_detects_museignore_as_plaintext L38–39
+ test_detects_nested_museattributes_as_toml method method test_detects_nested_museattributes_as_toml L41–42
+ test_detects_python_by_extension method method test_detects_python_by_extension L26–27
+ test_detects_toml_by_extension method method test_detects_toml_by_extension L23–24
+ test_no_extension_unknown_dotfile_returns_empty method method test_no_extension_unknown_dotfile_returns_empty L50–51
+ test_unknown_extension_returns_empty method method test_unknown_extension_returns_empty L47–48
+ _detect_language import import _detect_language L19–19
+ annotations import import annotations L15–15
+ pytest import import pytest L17–17
~ musehub/api/routes/musehub/_ui_helpers.py .py 1 symbol added, 2 symbols modified
+ _FILENAME_LANG_MAP variable variable _FILENAME_LANG_MAP L87–90
~ musehub/api/routes/musehub/ui_blob.py .py 1 symbol added, 2 symbols modified
+ _FILENAME_LANG_MAP variable variable _FILENAME_LANG_MAP L338–341
← Older Oldest on task/dotfile-syntax-highlighting
All commits
Newer → Latest on task/dotfile-syntax-highlighting

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:def0a47f2f64f2b0ca369a36767323c6aac2a774212b3655c2c5ada72bc69f35 --body "your comment"