mirror of
https://github.com/neovim/neovim.git
synced 2025-12-09 16:12:48 +00:00
@@ -13,6 +13,9 @@ synload.vim Contains autocommands to load a language file when a certain
|
||||
nosyntax.vim Used for the ":syntax off" command. Undo the loading of
|
||||
synload.vim.
|
||||
|
||||
The "shared" directory contains generated files and what is used by more than
|
||||
one syntax.
|
||||
|
||||
|
||||
A few special files:
|
||||
|
||||
|
||||
2
runtime/syntax/shared/README.txt
Normal file
2
runtime/syntax/shared/README.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
This directory "runtime/syntax/shared" contains Vim script files that are
|
||||
generated or used by more then one syntax file.
|
||||
2099
runtime/syntax/shared/typescriptcommon.vim
Normal file
2099
runtime/syntax/shared/typescriptcommon.vim
Normal file
File diff suppressed because it is too large
Load Diff
@@ -2,8 +2,8 @@
|
||||
" Language: sway window manager config
|
||||
" Original Author: James Eapen <james.eapen@vai.org>
|
||||
" Maintainer: James Eapen <james.eapen@vai.org>
|
||||
" Version: 0.11.0
|
||||
" Last Change: 2022 Jun 07
|
||||
" Version: 0.11.1
|
||||
" Last Change: 2022 Aug 08
|
||||
|
||||
" References:
|
||||
" http://i3wm.org/docs/userguide.html#configuring
|
||||
@@ -36,8 +36,8 @@ syn keyword swayConfigBindGestureCommand swipe pinch hold contained
|
||||
syn keyword swayConfigBindGestureDirection up down left right next prev contained
|
||||
syn keyword swayConfigBindGesturePinchDirection inward outward clockwise counterclockwise contained
|
||||
syn match swayConfigBindGestureHold /^\s*\(bindgesture\)\s\+hold\(:[1-5]\)\?\s\+.*$/ contains=swayConfigBindKeyword,swayConfigBindGestureCommand,swayConfigBindGestureDirection,i3ConfigWorkspaceKeyword,i3ConfigAction
|
||||
syn match swayConfigBindGestureSwipe /^\s*\(bindgesture\)\s\+swipe\(:[1-5]\)\?:\(up\|down\|left\|right\)\s\+.*$/ contains=swayConfigBindKeyword,swayConfigBindGestureCommand,swayConfigBindGestureDirection,i3ConfigWorkspaceKeyword,i3ConfigAction
|
||||
syn match swayConfigBindGesturePinch /^\s*\(bindgesture\)\s\+\(pinch\):.*$/ contains=swayConfigBindKeyword,swayConfigBindGestureCommand,swayConfigBindGestureDirection,swayConfigBindGesturePinchDirection,i3ConfigWorkspaceKeyword,i3ConfigAction
|
||||
syn match swayConfigBindGestureSwipe /^\s*\(bindgesture\)\s\+swipe\(:[3-5]\)\?:\(up\|down\|left\|right\)\s\+.*$/ contains=swayConfigBindKeyword,swayConfigBindGestureCommand,swayConfigBindGestureDirection,i3ConfigWorkspaceKeyword,i3ConfigAction
|
||||
syn match swayConfigBindGesturePinch /^\s*\(bindgesture\)\s\+pinch\(:[2-5]\)\?:\(up\|down\|left\|right\|inward\|outward\|clockwise\|counterclockwise\)\(+\(up\|down\|left\|right\|inward\|outward\|clockwise\|counterclockwise\)\)\?.*$/ contains=swayConfigBindKeyword,swayConfigBindGestureCommand,swayConfigBindGestureDirection,swayConfigBindGesturePinchDirection,i3ConfigWorkspaceKeyword,i3ConfigAction
|
||||
|
||||
" floating
|
||||
syn keyword swayConfigFloatingKeyword floating contained
|
||||
|
||||
@@ -35,7 +35,7 @@ syntax region typescriptTypeCast matchgroup=typescriptTypeBrackets
|
||||
|
||||
"""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
" Source the part common with typescriptreact.vim
|
||||
source <sfile>:h/typescriptcommon.vim
|
||||
source <sfile>:h/shared/typescriptcommon.vim
|
||||
|
||||
|
||||
let b:current_syntax = "typescript"
|
||||
|
||||
@@ -133,7 +133,7 @@ syntax region tsxEscJs
|
||||
|
||||
"""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
" Source the part common with typescriptreact.vim
|
||||
source <sfile>:h/typescriptcommon.vim
|
||||
source <sfile>:h/shared/typescriptcommon.vim
|
||||
|
||||
|
||||
syntax cluster typescriptExpression add=tsxRegion,tsxFragment
|
||||
|
||||
Reference in New Issue
Block a user