【发布时间】:2021-07-12 08:54:41
【问题描述】:
我为 Fortran 编写了一个语法高亮器,它可以正确地高亮 cmets。问题是ctrl+/ 快捷方式无法打开或关闭 cmets。
我需要添加一些特定的设置来启用它吗?
作为参考,我使用了 Sublime 提供的标准 *.sublime-syntax 文件结构来构建荧光笔。所以,它看起来像:
%YAML 1.2
---
# See http://www.sublimetext.com/docs/3/syntax.html
file_extensions: [f]
scope: source.fortran
contexts:
main:
# Comments begin with a '!' and finish at the end of the line
- match: '!'
scope: punctuation.definition.comment.fortran
push: line_comment
line_comment:
- meta_scope: comment.line.fortran
- match: $
pop: true
另外,我在 RedHat 7 上使用它。
【问题讨论】:
标签: fortran sublimetext3