vim-patch:9.1.1647: filetype: Cangjie files are not recognized

Problem:  filetype: Cangjie files are not recognized
Solution: Detect *.cj files as cangjie filetype, include a syntax plugin
          (WuJunkai2004)

This commit introduces a new syntax highlighting file for the Cangjie
programming language, includes 4 parts as required:
- The main syntax file: runtime/syntax/cangjie.vim
- The filetype detection rule in: runtime/filetype.vim
- The documentation update in: runtime/doc/syntax.txt
- Some menus

References:
- https://gitcode.com/Cangjie
- https://cangjie-lang.cn/

fixes: 18014
closes: vim/vim#18027

0c4405a6b2

Co-authored-by: WuJunkai2004 <wujunkai20041123@outlook.com>
This commit is contained in:
zeertzjq
2025-08-20 07:21:31 +08:00
parent 3ec63cdab8
commit ba25f3e4d4
6 changed files with 174 additions and 0 deletions

View File

@@ -278,6 +278,7 @@ local extension = {
c3t = 'c3',
cabal = 'cabal',
cairo = 'cairo',
cj = 'cangjie',
capnp = 'capnp',
cdc = 'cdc',
cdl = 'cdl',