1 Star 1 Fork 1

一只程序喵/HexViewer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
HexViewer.sublime-syntax 1.04 KB
一键复制 编辑 原始数据 按行查看 历史
%YAML 1.2
---
# http://www.sublimetext.com/docs/3/syntax.html
name: Hex Viewer
file_extensions: ['hxv']
scope: source.hex
contexts:
main:
- match: '^([a-fA-F\d]{8}\:)([\s]{2})'
captures:
1: keyword.address.hex
2: dump.buffer-start.hex
push:
- meta_scope: dump.hex
- match: '[\s]{2}(\:)'
captures:
0: dump.buffer-end.hex
1: keyword.ascii-start.hex
pop: true
- match: '[\da-fA-F]{1}'
captures:
0: raw.nibble.upper.hex
push:
- meta_scope: raw.byte.hex
- match: '[\da-fA-F]{1}'
captures:
0: raw.nibble.lower.hex
pop: true
- match: '[\w\W]'
scope: invalid.illegal.expected-nibble.hex
- match: '[\s]{1}'
scope: raw.punctuation.hex
- match: '[\w\W]{1}\s*'
scope: invalid.illegal.character.hex
- match: '^[\w\W]*$'
scope: invalid.malformed-line.hex
- match: '[\w\W]*$'
scope: comment.ascii.hex
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/bobneo/HexViewer.git
git@gitee.com:bobneo/HexViewer.git
bobneo
HexViewer
HexViewer
master

搜索帮助