Skip to content

Commit

Permalink
feat: add tmux syntax for bat
Browse files Browse the repository at this point in the history
  • Loading branch information
jluckyiv committed Jun 22, 2022
1 parent 3eb94e6 commit 1ed5d03
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions bat/.config/bat/syntaxes/Tmux.sublime-syntax
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
%YAML 1.2
---
# http://www.sublimetext.com/docs/3/syntax.html
name: Tmux
hidden: false
file_extensions:
- tmux.conf
- tmux
- .tmux.conf
- .tmux
scope: source.tmux
contexts:
main:
- match: \bC\-[a-z]\b
scope: support.constant.tmux
- match: \b[1-9][0-9]*\b
scope: constant.numeric.tmux
- match: |-
(?x)^(
bind|
split-window|
send-keys|
set-(window-)?option|
set|
unbind
)\b
scope: support.function.tmux
- match: |-
(?x)\b(
base-index|
(begin|copy)-selection|
copy-(mode|pipe)|
display|
default-terminal|
escape-time|
mode-(keys|mouse)|
mouse|
pane-base-index|
paste-buffer|
prefix|
renumber-windows|
resize-pane|
select-pane|
send-prefix|
set-titles-string|
set-titles|
source-file|
split-window|
status-(fg|bg|keys)|
status-(left|right)(-length)?|
terminal-overrides|
vi-copy|
window-status(-(format|separator|current(-(bg|format))))?|
xterm-keys
)\b
scope: entity.other.tmux
- include: scope:source.shell

0 comments on commit 1ed5d03

Please sign in to comment.