Skip to content

Commit 8f1a866

Browse files
authored
Merge pull request #27 from y0za/syntax
Improve scroll speed
2 parents 8e25958 + 0dd1087 commit 8f1a866

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

after/syntax/javascript.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,13 @@ syntax match jsxEntityPunct contained "[&.;]"
7878
syntax match jsxTagName
7979
\ +<\_s*\zs[^/!?<>"']\++
8080
\ contained
81+
\ nextgroup=jsxAttrib
8182
\ display
8283

8384
" <tag key={this.props.key}>
8485
" ~~~
8586
syntax match jsxAttrib
86-
\ +\(\(<\_s*\)\@<!\_s\)\@<=\<[a-zA-Z_][-0-9a-zA-Z_]*\>\(\_s\+\|\_s*[=/>]\)\@=+
87+
\ +\_s\<[a-zA-Z_][-0-9a-zA-Z_]*\>\(\_s\+\|\_s*[=/>]\)\@=+
8788
\ contained
8889
\ display
8990

after/syntax/typescript.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,13 @@ syntax match jsxEntityPunct contained "[&.;]"
7878
syntax match jsxTagName
7979
\ +<\_s*\zs[^/!?<>"']\++
8080
\ contained
81+
\ nextgroup=jsxAttrib
8182
\ display
8283

8384
" <tag key={this.props.key}>
8485
" ~~~
8586
syntax match jsxAttrib
86-
\ +\(\(<\_s*\)\@<!\_s\)\@<=\<[a-zA-Z_][-0-9a-zA-Z_]*\>\(\_s\+\|\_s*[=/>]\)\@=+
87+
\ +\_s\<[a-zA-Z_][-0-9a-zA-Z_]*\>\(\_s\+\|\_s*[=/>]\)\@=+
8788
\ contained
8889
\ display
8990

0 commit comments

Comments
 (0)