Skip to content

[209_20] 增加Fish(Itasca)代码块及高亮支持#3018

Open
JerryMain521 wants to merge 3 commits intoMoganLab:mainfrom
JerryMain521:JerryMain521/209_20/add-fish-code-highlight
Open

[209_20] 增加Fish(Itasca)代码块及高亮支持#3018
JerryMain521 wants to merge 3 commits intoMoganLab:mainfrom
JerryMain521:JerryMain521/209_20/add-fish-code-highlight

Conversation

@JerryMain521
Copy link
Copy Markdown
Contributor

[209_20] 增加Fish(Itasca)代码块及高亮支持

如何测试

  1. 选择菜单插入-程序-代码块/行内代码或使用 \fish 或者 \fish-code插入代码块环境
  2. 输入一些fish代码检查高亮
  • 测试文档: TeXmacs/tests/tmu/209_20.tmu

文件位置

  • 语言定义:TeXmacs/plugins/fish/progs/data/fish.scm
  • 样式包:TeXmacs/plugins/fish/packages/code/fish.ts
  • 编辑功能:TeXmacs/plugins/fish/progs/code/fish-edit.scm
  • 高亮功能:TeXmacs/plugins/fish/progs/code/fish-lang.scm
  • 模式定义:TeXmacs/plugins/fish/progs/code/fish-code.scm
  • 文档:TeXmacs/plugins/fish/doc/fish.en.tmu

@JackYansongLi
Copy link
Copy Markdown
Contributor

写PR描述的时候最好加上截图


;; 检查字符串是否以特定关键字开头
(define (starts-with-keyword? s keys)
(and (nnull? keys)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

多行函数定义缺少右括号标记。风格指南要求:跨行的环境必须带右侧标记,如 ) ;define。当前代码如 string-strip-rightends-with-keyword?starts-with-keyword? 等多行函数都缺少 ) ;define 标记。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants