Skip to content

Develop -> Master #395

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 52 commits into from
Apr 25, 2016
Merged
Changes from 1 commit
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
5fea23e
fast attempt for issues with multiple declarations
Apr 1, 2016
2931086
line following arrow indentation
bounceme Apr 10, 2016
6858535
Merge pull request #357 from bounceme/develop
amadeus Apr 11, 2016
7f5c7b8
Merge pull request #367 from bounceme/patch-1
amadeus Apr 11, 2016
f286f94
Fix lambda definitions in class definitions
amadeus Apr 9, 2016
2881bba
Merge pull request #366 from amadeus/arrow-functions-in-class
amadeus Apr 11, 2016
734cdfc
Improve one line scope
bounceme Apr 12, 2016
f13009e
Adding [ and ] to jsFuncArgDestructuring
amadeus Apr 14, 2016
c8ac1c8
Merge pull request #377 from amadeus/add-brackets-to-destructuring
amadeus Apr 18, 2016
17fa18c
simplifies the parentheses handling
bounceme Apr 16, 2016
989deba
Merge pull request #379 from bounceme/patch-11
amadeus Apr 19, 2016
7d371dd
Fixing comments in ES6 Class declarations
amadeus Apr 19, 2016
2adca53
Merge pull request #384 from amadeus/fix-comments-in-class-declaration
amadeus Apr 19, 2016
3208fc5
Operator first support,including ternary,dot etc.
bounceme Apr 20, 2016
dd95ac2
Merge pull request #385 from bounceme/patch-14
amadeus Apr 20, 2016
992b76d
Temporarily disabled jsArrowFuncArgs with parens
amadeus Apr 18, 2016
c4725ca
Merge pull request #380 from amadeus/temporary-fix-for-arrow-func-args
amadeus Apr 20, 2016
16673ac
Adding a license note to the README
amadeus Apr 20, 2016
cc5a971
Merge pull request #387 from amadeus/add-license
amadeus Apr 20, 2016
d388b88
Merge pull request #373 from bounceme/patch-8
amadeus Apr 20, 2016
6cb0c96
old changes reset
Apr 21, 2016
ff62d63
#324
bounceme Apr 21, 2016
5b7445e
Merge pull request #390 from bounceme/patch-16
amadeus Apr 22, 2016
20b0eb6
Merge pull request #370 from bounceme/patch-6
amadeus Apr 22, 2016
b9feef0
Improved lambda argument handling
amadeus Apr 18, 2016
48263c8
Merge pull request #388 from amadeus/lambda-experiments
amadeus Apr 22, 2016
a607a7d
spanning multiple lines detection
bounceme Apr 21, 2016
e9f6a4d
Merge pull request #389 from bounceme/patch-15
amadeus Apr 23, 2016
1da09b6
Move jsDocTag @file to a different jsDocTag group
amadeus Apr 22, 2016
3e13731
Merge pull request #394 from amadeus/fix-341
amadeus Apr 24, 2016
af37b22
[-+] not by another
bounceme Apr 24, 2016
c5250b3
Merge pull request #396 from pangloss/bounceme-patch-1
amadeus Apr 24, 2016
f7cec8c
Fixing bizarre jsDocParam bug
amadeus Apr 22, 2016
c438302
Merge pull request #392 from amadeus/fix-jsdocparam
amadeus Apr 24, 2016
e74d758
Refactored README.md
amadeus Apr 24, 2016
2f0b1d2
Removing deprecated folding logic
amadeus Apr 24, 2016
48067d6
Add code folding documentation
amadeus Apr 24, 2016
a51d0f3
Update javascript.vim
bounceme Apr 24, 2016
af08aae
Merge pull request #398 from amadeus/last-minute-tweaks
amadeus Apr 24, 2016
d7a5869
Merge pull request #399 from pangloss/bounceme-patch-1
amadeus Apr 24, 2016
1c75d8a
Fix JSDoc record matching
amadeus Apr 24, 2016
9ece5d5
Merge pull request #397 from amadeus/fix-jsdoc-records
amadeus Apr 25, 2016
a7f2216
Optimize JSNoise and JSOperator regexes
amadeus Apr 22, 2016
01ecaf9
Removing deprecated selectors
amadeus Apr 22, 2016
f7d2207
Optimized jsGlobalObjects
amadeus Apr 22, 2016
33eb9fe
Optimized jsArrowFuncArgs selector
amadeus Apr 22, 2016
508c1a3
Remove syntax sync clear
amadeus Apr 22, 2016
3a4991e
Improved jsTaggedTemplate performance
amadeus Apr 22, 2016
842b0ce
Improved performance of jsRegexpString
amadeus Apr 22, 2016
c2bc4c7
Limiting jsRegexpString look behinds
amadeus Apr 24, 2016
09fde19
Merge pull request #391 from amadeus/performance-improvements
amadeus Apr 25, 2016
4b6f9c5
Bumping version number to v1.0.0
amadeus Apr 25, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Improved lambda argument handling
  • Loading branch information
amadeus committed Apr 22, 2016
commit b9feef0864cfd77822ace829267b91c33df7c34f
14 changes: 7 additions & 7 deletions syntax/javascript.vim
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,10 @@ endif "DOM/HTML/CSS
syntax cluster jsExpression contains=jsComment,jsLineComment,jsBlockComment,jsTaggedTemplate,jsTemplateString,jsStringD,jsStringS,jsRegexpString,jsNumber,jsFloat,jsThis,jsStatic,jsSuper,jsOperator,jsBooleanTrue,jsBooleanFalse,jsNull,jsFunction,jsArrowFunction,jsGlobalObjects,jsExceptions,jsFutureKeys,jsDomErrNo,jsDomNodeConsts,jsHtmlEvents,jsDotNotation,jsBracket,jsParen,jsBlock,jsFuncCall,jsUndefined,jsNan,jsKeyword,jsStorageClass,jsPrototype,jsBuiltins,jsNoise,jsCommonJS,jsAssignmentExpr,jsImportContainer,jsExportContainer,jsArgsObj,jsDecorator,jsAsyncKeyword,jsClassDefinition,jsArrowFunction,jsArrowFuncArgs
syntax cluster jsAll contains=@jsExpression,jsLabel,jsConditional,jsRepeat,jsReturn,jsStatement,jsTernaryIf,jsException
syntax region jsBracket matchgroup=jsBrackets start="\[" end="\]" contains=@jsAll,jsParensErrB,jsParensErrC,jsBracket,jsParen,jsBlock,@htmlPreproc fold
syntax region jsParen matchgroup=jsParens start="(" end=")" contains=@jsAll,jsOf,jsParensErrA,jsParensErrC,jsParen,jsBracket,jsBlock,@htmlPreproc fold
syntax region jsParen matchgroup=jsParens start="(" end=")" contains=@jsAll,jsOf,jsParensErrA,jsParensErrC,jsParen,jsBracket,jsBlock,@htmlPreproc fold extend
syntax region jsClassBlock matchgroup=jsClassBraces start="{" end="}" contains=jsFuncName,jsClassMethodDefinitions,jsOperator,jsArrowFunction,jsArrowFuncArgs,jsComment,jsBlockComment,jsLineComment contained fold
syntax region jsFuncBlock matchgroup=jsFuncBraces start="{" end="}" contains=@jsAll,jsParensErrA,jsParensErrB,jsParen,jsBracket,jsBlock,@htmlPreproc,jsClassDefinition fold
syntax region jsBlock matchgroup=jsBraces start="{" end="}" contains=@jsAll,jsParensErrA,jsParensErrB,jsParen,jsBracket,jsBlock,jsObjectKey,@htmlPreproc,jsClassDefinition fold
syntax region jsFuncBlock matchgroup=jsFuncBraces start="{" end="}" contains=@jsAll,jsParensErrA,jsParensErrB,jsParen,jsBracket,jsBlock,@htmlPreproc,jsClassDefinition fold extend
syntax region jsBlock matchgroup=jsBraces start="{" end="}" contains=@jsAll,jsParensErrA,jsParensErrB,jsParen,jsBracket,jsBlock,jsObjectKey,@htmlPreproc,jsClassDefinition fold extend
syntax region jsTernaryIf matchgroup=jsTernaryIfOperator start=+?+ end=+:+ contains=@jsExpression,jsTernaryIf

"" catch errors caused by wrong parenthesis
Expand All @@ -213,21 +213,21 @@ if main_syntax == "javascript"
syntax sync match jsHighlight grouphere jsBlock /{/
endif

syntax match jsFuncArgDestructuring contained /\({\|}\|=\|:\|\[\|\]\)/ extend
exe 'syntax match jsFunction /\<function\>/ nextgroup=jsGenerator,jsFuncName,jsFuncArgs skipwhite '.(exists('g:javascript_conceal_function') ? 'conceal cchar='.g:javascript_conceal_function : '')
exe 'syntax match jsArrowFunction /=>/ skipwhite nextgroup=jsFuncBlock contains=jsFuncBraces '.(exists('g:javascript_conceal_arrow_function') ? 'conceal cchar='.g:javascript_conceal_arrow_function : '')

syntax match jsGenerator contained '\*' nextgroup=jsFuncName,jsFuncArgs skipwhite
syntax match jsFuncName contained /\<[a-zA-Z_$][0-9a-zA-Z_$]*/ nextgroup=jsFuncArgs skipwhite
syntax region jsFuncArgs contained matchgroup=jsFuncParens start='(' end=')' contains=jsFuncArgCommas,jsFuncArgRest,jsComment,jsLineComment,jsStringS,jsStringD,jsNumber,jsFuncArgDestructuring nextgroup=jsFuncBlock keepend skipwhite skipempty
syntax region jsFuncArgs contained matchgroup=jsFuncParens start='(' end=')' contains=jsFuncArgCommas,jsFuncArgRest,jsComment,jsLineComment,jsStringS,jsStringD,jsNumber,jsFuncArgDestructuring,jsArrowFunction,jsParen,jsArrowFuncArgs nextgroup=jsFuncBlock keepend skipwhite skipempty
syntax match jsFuncArgCommas contained ','
syntax match jsFuncArgRest contained /\%(\.\.\.[a-zA-Z_$][0-9a-zA-Z_$]*\))/ contains=jsFuncArgRestDots
syntax match jsFuncArgRestDots contained /\.\.\./
syntax match jsFuncArgDestructuring contained /\({\|}\|=\|:\|(\|)\|\[\|\]\)/ extend

" Matches a single keyword argument with no parens
syntax match jsArrowFuncArgs /\(\k\)\+\s*\(=>\)\@=/ skipwhite contains=jsFuncArgs nextgroup=jsArrowFunction
syntax match jsArrowFuncArgs /\(\k\)\+\s*\(=>\)\@=/ skipwhite contains=jsFuncArgs nextgroup=jsArrowFunction extend
" Matches a series of arguments surrounded in parens
" syntax match jsArrowFuncArgs /(\%(.\)*)\s*\(=>\)\@=/ skipempty skipwhite contains=jsFuncArgs nextgroup=jsArrowFunction
syntax match jsArrowFuncArgs /([^()]*)\s*\(=>\)\@=/ skipempty skipwhite contains=jsFuncArgs nextgroup=jsArrowFunction extend

syntax keyword jsClassKeywords extends class contained
syntax match jsClassNoise /\./ contained
Expand Down