You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
301 B
VimL

au BufNewFile,BufRead *.js setf javascript
au BufNewFile,BufRead *.jsm setf javascript
au BufNewFile,BufRead Jakefile setf javascript
fun! s:SelectJavascript()
Squashed 'vim/bundle/javascript/' changes from 3093f26be..e9a59c877 e9a59c877 hotfix: Improve switch 3abb9aeb1 Merge pull request #696 from pangloss/develop 419f0d6a8 accurate collection (#699) b0f562956 de-noising d47868cad remove magic try 74f6d46f7 remove es6 semi-less do-while handling (#698) 8ac7badb3 Remove all extra grouping (#697) bedb8cb2e cleaning 6f3e6e974 keep string type 8a40889ba skip any html 15905f208 refactor,cleaning isblock eac13000f another return d23050e30 return redundancies 817215be5 more code cleaning 2ef9a9ca3 refactoring block conditions (#695) 01f780426 keyword atom 7835f3dc6 Refactoring (#693) 396829c38 comment handling 4d6021610 prevline = 0 at html b5a21109b code minify 12a6f46c4 alpha short circuiting 65e68f563 revert char check 01193be9e date, str char cdb44a869 last index string 918202964 clearer char checking 1e52ed9bc remove var dcf820b2a adjust precedence of comment/jsx f8fc08c8d small comment fix 187b1d6a0 recursion in isBlock: comment skip (#692) afb03f5eb cleaning,skip_func 8996ec593 date, cleaning 579997a82 isBlock cleaning 67b9f3d60 Merge pull request #691 from mixedCase/develop b4517ac35 Add fetch keyword to list of globals 2d33a9e11 code cleaning bf2a1b42f last case statement 460598f32 fix 'default' property identifier (#689) 4456229dd non whitespace non : after case statement 997c2b12f Merge pull request #679 from pangloss/develop 23bb9c3e1 last cleaning 88b068088 cleaning 672c379b1 Update javascript.vim 2676ca045 Prevent giant loop, refactor 4b435ebb4 small fix ead360d5a refactor 3b9a45627 check for case statement in switch (#682) b3edf7f9e cleaner cursor call c746dbc7f reltime search 5d8153eec string match dc34b2461 small fixes (#678) da8ac5b8e remove pattern match b0237b039 other small touches (#677) 53f843b64 shorten s:var names 4ee476b45 init (#676) 69f2c87dc small minification and perf (#675) e643047f4 simplify trimline (#673) 920873e91 simplify balance func (#672) c51624124 more variables e4452cf87 remove identical 371a71aae template pline d55813b14 ws start, again 3d59c74c7 date, first char whitespace 8df58fec2 cleaning 3a3cae8a6 do while made accurate (#671) 31b2fff3e cleaning 1811b3e92 various little updates (#670) baa07dd0d refactor isblock for jsx (#668) d736e9533 Merge pull request #653 from pangloss/develop 7d30463e1 Revert "Merge branch 'master' into develop" 7e9aeb30f word boundary to start/end 822dfe5f9 Merge branch 'master' into develop da65c0cdd massive expression to if chain (#667) 25e98656f Merge pull request #660 from tomxtobin/fix-jsdoc-optional-parameter-highlighting 06a3b8109 Merge pull request #654 from BenoitZugmeyer/develop ba0ae275c remove random nl 214450913 shorten long line,date 67ebe06ed skip comment (#665) 8d904f65f improve end of line trim (#662) ba2245fbe Misc improvements (#661) 292d90161 Fix JSDoc highlighting for optional parameters f674cbab5 case label needs non whitespace- (#658) f64dae710 for await indent (#656) b0d7c153a add support for "for await" (asynchronous iteration) ecc674fc5 flow generic classes (#652) 572b98d12 Fixing another funky comment situation cd4ace412 wrap for magic (#651) c76d65bd5 fail earlier 833d6ec12 short circuit cache check 6656f37bf small regex changes 88111be6a factor out 840f12917 more regex line endings 77c4ae620 better line cleaning (#649) d6b2fd599 change regex case 6ecbda3b3 clean isBlock (#648) 92f1d98db switch accuracy and performance (#647) dc678406d more optimization (#646) 02c8c644c remove rar 5453eb09d more string/comment cleaning ce7c06c39 simplify comments 2202e5804 Merge pull request #645 from remiprev/fix/js-flow-type-custom-regex fcdc1dcdb Fix jsFlowTypeCustom regex to allow dots 3bb395c39 normalize header in vim and current, date (#642) d94ab71e2 optimize top scope indentation speed (#640) a7225e4bd Fix jsGlobalNodeObjects and jsFuncCall priority afbe2844e more minor optimizations (#638) 1219b150b small skip_func improvements (#637) ff5f3f144 fix concat bug 3b38947f2 prev 5df8b344a more number conversion b2ded1258 change num <= 0 to 0 aa37199ec change to searchpair helper 6426110f8 Update javascript.vim 48567e03b Update javascript.vim ebd222b3d date,format d3e952cf8 multi-braceless statements (#636) 854d431c0 Merge pull request #635 from pangloss/async-await a59f5cb99 First pass at improved async/await support a50df5fc7 Merge pull request #630 from pangloss/develop d5dbecb6e Group link fixes 2bc46635a Merge pull request #631 from jfelchner/fix/syntax-highlighting-issues 5c4de0c43 slight changes to the skip_func (#632) 0cb2e1134 Change ClassKeywords to Keywords instead of Define 6c78b77ad Whitespace 801aad41b Change highlight link for decorators to 'Tag' 20bb09ae6 Fix decorator syntax highlighting aa2fb9015 Add section comments 430b5284f Removed 'contained' constraint from 'this' keyword highlight 615f83754 Add more specialized groups for the various braces 355d6650d Add individual syntax groups for various parenthesis 4e2e37755 Add highlight group specifically for object colons faf6f67ef remove indent copy 14198ab62 copy indent if in same scope only 0b6aad4c4 speed increase attempt (#629) 81e4e6f61 small script function changes (#628) c15142cf3 allow bind op as line end continuation 5a5cdf03f remove 1 char fce8e771e fix blocks after case statement 91314f3f3 fix objects after ternary ':' b53274d98 more small improvements 81d85029a refactor adjustment and simplify 0ab4b1d18 small fix 89b5505ab Allow any comment or empty in adjustment a7e64a92a don't let variable in block e69cc1691 no adjustment in block statements 0134b36de little optimizations (#627) 39f09ee50 simplify assignment 4d7a4227e superfluous condition 46b6dd514 allow blank line in adjustment calc d51ef6ab2 small change 2dd5dff8f cleaning 172aae659 cleaning c36a91b78 fix 224fcee54 small changes 5f7e36a4a formatting,date 023e1d851 other fixes with cache 22d0e64ee more performance and bugfixes 058667839 far better version of last commit bf74844aa fix cached blank line problem 7e6d96313 Merge pull request #621 from pangloss/adj 8711b66df remove variables from readme 2f5937e0c deprecate options cc9bd56e8 Update javascript.vim 0a3bb5242 Update javascript.vim c9f6fadbd performance refactor 174d94e6f produce cindent-like f8a4a45f3 fixes for the bugfixes 0bba85764 bugfixes d6616d5fd Update javascript.vim 6aba38457 adjustable indent (experimental) 941b38962 Merge pull request #619 from pangloss/jsx 51035b51a react property expressions aa5586ce1 small bugfixes f1bd983c6 allow nl in export default af4374115 regex update 27ec99a6e Merge pull request #614 from pangloss/fix-export-default-indent fd6c2b756 Fix export default style indents 2e3ab0a8b improve regex cd0fc2822 comment fix faf8bda63 containing braces which aren't blocks 782cc1078 Merge pull request #604 from pangloss/develop 5900fce5a last commit revert 6787729dc remove ugly function call 34a070cc3 minor style changes 951619284 case statements update 055ce0ca6 switch stuff efab7db0b date 8eea63270 fix foreach method calls 0a955ee44 function removed,cleaning d0a4aa401 more regex (#608) 67f2990a8 regex improvements (#607) ba6dce3cb Rename function f16fe69f0 Change function names aadf36b73 cache can be invalid for he current line cef306faf settings (#603) 3a20412d2 cleaning (#601) 28b5a8768 block statement (#596) 0cab45687 regex improvements debb9bf72 Readme Updates (#599) 898a536e0 disambiguate vars 6f31d7213 fix regex 9703a61af cleaning, minor performance improvements b59dfbc87 Update javascript.vim a7e60bbe4 remove repeated syn checking 0a7432f3e remove transparent syntax check 29519c62a case sensitive 4a126ee6a negatives are truthy in vimscript 2a85b3c34 ind updates (#593) 5632438f0 simplify regex fc43554f2 case-sensitivity 336d4351c more cleaning 6a3fac49a cleaning b8762e8af remove buggy linehasopeningbracket trick 73c85a3f7 awful off-by-one bug 23b4639fc accuracy and speed increase for line_term regex 97e5fcab6 last commit extended to blocks b65cd1447 update comments 27a37b4a7 for 585 (#586) 6de8f62f6 more regex 4278caa27 unicode identifiers bd4c5270e limit regex lookbehind 58095d864 regex char classes c003d8b97 join lines 86413728b Don't join strings in multiple lines 5ba6eab76 case-sensitivity (#583) a328e8175 add label support (#582) 6706a2442 few remaining touches 60eaba7be Update javascript.vim bc6422b5a had a problem with some of the changes e8bb2bad7 remove line comment appended to code (#581) 5923f8092 comment on performance, angle brackets ee3183e7f fix ftplugin var and clean indent (#580) 924a6456c misc fixes (#578) 8e3f58977 Merge pull request #544 from pangloss/develop 6d70fab41 fix c-style continuation (#576) 1d32e38b0 regex for word boundary 9e2c10e32 remove else 33833cc48 allow for line breaks before blocks (#575) 13610e67c Updating indent top comments d17aee51b Flow tweaks cbcfaaf09 adding more operators (#573) 2905f34d8 removing mode-line acb4f0032 fix syn function 506783bc1 move lines from search pair function 57470573a remove obvious comment f90b8c85e more cleaning ad8d72ad4 cleaning indent bf7d4b663 remove switch syn check (#571) ab5d96bbb possible reuse of logic (simple lexing) (#570) e895bd162 fix syn-indent issue 9a6c48548 minor refactor b4038a26c addresses unindented code 6c440b3ec perf continued 96885ca80 small perf gain 0c3a3509e add jsfunccall to not indent args f25397549 more cleaning 84e1cc1c0 cleaning 71c9fc825 negative and decimal switch label values (#569) df6c7ef9c remove whitespace and regex mistake 31d8b39f2 switch enhanced (#568) 005928682 operators & continuation (#566) c68ecbe99 removing custom formatting (#565) 178566475 Fixed another maybe case c7dca1bd6 Merge pull request #564 from pangloss/even-more-flow-fixes 125337c11 More flow improvements 9677d923c Merge pull request #561 from dmitrivereshchagin/update-syntax bd177f373 Merge pull request #562 from pangloss/flow-fixes 215e9572b Fix jsFlowClassDefinitions c1d8d3766 Add jsFlowReturnMaybe 19b1d4fcc Remove unused g:javascript_conceal variable 3089ddda7 Merge remote-tracking branch 'origin/switch' into develop f2b8aeb4c Update javascript.vim 995007aea Switch (#555) 35ac627aa Update javascript.vim e6a4f2f2d Update ftplugin (#553) 023f02c8d Update javascript.vim d745bd019 Merge pull request #556 from pangloss/flow-refactor c2b7c0550 JS Flow refactor 6f82a0cec Re revert (#554) 2efcfa3ab Remove 'smartindent' from indent plugin (#551) 1c9a3dc4f undo_indent b88468056 possible indent revert(dev branch) (#550) aadffc04e Update javascript.vim 61aea7bcb Update javascript.vim 2792e6324 switch offset always calculated when inside switch e41dbaacc for 194 (#548) 08c4fd784 Merge pull request #540 from dmitrivereshchagin/numeric-literals 68b8596d4 Merge pull request #547 from pangloss/nodejs-constants 25ff93778 Adding some common NodeJS globals 352bcc283 try ..catch (#546) 32e7c7871 indentation refactoring (#515) a70cd8d51 Merge pull request #541 from dmitrivereshchagin/syntax-iskeyword 307295889 Merge pull request #543 from dmitrivereshchagin/update-ftplugin 653858c18 Make use of b:undo_indent variable (#542) 8cf97bdc7 Update filetype plugin 550e1e8e8 Make use of syntax specific iskeyword setting ed40c9cb6 Tweak highlighting of numeric literals 2af5f55ff Merge pull request #533 from romgrk/patch-1 7982ec46f typo 4a6376aee Merge pull request #532 from pangloss/fix-oddly-placed-comments ac813c03a Adding support for oddly placed comments 6acba740c Merge pull request #531 from jridgewell/patch-1 3b8017ef6 Remove jsOperator from jsClassBlock d11bc09fb Merge pull request #530 from pangloss/do-expression-support ac92e1b28 Adding do expression support 2f4838257 Merge pull request #526 from amadeus/link-jsclassdefinition 4133fcad0 Linking jsClassDefinition to jsFuncName ad5d09edf Merge pull request #518 from pangloss/more-flow-fixes 5a699857e Adding bool to jsFlowType 583a4948d Including jsFlow in other contexts 4670d4fca Fix for jsFlowTypeValue bfbc10d2f Fixed jsFlowTypeObjects not being closed 26c7330de Merge pull request #513 from pangloss/develop dbfa5f067 Merge pull request #512 from pangloss/flow-updates fdc96c469 More misc fixes for various flow things bf53654d6 A fix for jsFlowReturn 3af93bd3d Merge pull request #511 from pangloss/fix-import-comments ebda7fee0 Adding jsComment to import/export blocks 560b4fde6 Improvements for one line scope (#509) 29e1e0561 minor indentation cleaning (#508) 9206ec55b Merge pull request #507 from pangloss/misc-fixes d6a969942 Added async to jsObjectMethodTypes e8a6f93e5 Adding support for switch blocks 1586f7230 Added async to jsClassMethodDefinitions c04d09988 Merge pull request #501 from pangloss/develop f90113a1e Merge pull request #504 from pangloss/jscomment-tweaks 3306f6365 jsComment updates 7541e0208 Merge pull request #503 from pangloss/misc-fixes 5b4233850 Fixes for Flow on Classes 8a972d317 Whitespace fb1c662cc Support destructuring values following assignment 57f5013bd Merge pull request #500 from pangloss/improved-exports 4eab47d67 First pass at improved export support 8deb69846 Merge pull request #470 from pangloss/js-flow-support 5cefcff31 Unpluralizing files and variable names 37bfc8ccf Plugin usage tweaks af791ed19 Adding object key flow support be5207068 Using runtime over syntax include b6eccf90b Adding NGDoc support 752cee263 Moving jsdoc support into a separate file. 9d0bea561 Masking Flow support behind a global var 5f839a225 Removing jsFlow from jsAll cluster 926b7f935 Adding < and > to jsFlowNoise ef37a147c Adds a ton of support for various parts of jsFlow 82fb8b974 Adding some basic Flow support 01150776b accurate switch indenting (#499) 420f98cc2 let a continuation be determined with block close (#496) 6bb633fb7 comment misalignment (#495) 0e0878577 Merge pull request #494 from pangloss/improve-destructuring 7d41c3c63 Improvements to Spread and Rest 9d816e398 Fixes to array destructuring afe61796a Improved array destructuring 47951eec6 Refinements to destructuring 939f478f6 Improvements to destructuring 52e8f90e2 incorrect change in cursor pos (#489) ea5803348 a solution for 486 (#488) d70bb4e3f Merge pull request #480 from pangloss/develop 22c6f6d0d Merge pull request #485 from pangloss/fix-promise-catch d3d09b9c5 First pass at fixing Promise catch methods. b2baf85d6 Merge pull request #483 from pangloss/fix-object-strings ecae87560 Fixing object string keys 233b6c32c paren matching (#474) be5506443 Merge pull request #479 from pangloss/object-string-key-shorthand 51c16139c Adds support for string func names in objs classes 6b58cd0e0 Merge pull request #472 from pangloss/develop 9e5b60a4f Pulling version number out of README 8e710ba8e changes according to #466 (#463) ceb3341b8 Make ternary handling more robust e38617a51 Fix computed class properties fc3874662 Potential fix for jsClassValue region 5a0ae7639 Misc tweaks 8aea86351 Debugger is no longer a future keys e6182482b Unlinking jsFutureKeys 37cdc8ccc Improvements to jsClassValue endcase 42512308a Changing a TODO to a DISCUSS 8679129ee Renaming jsArray to jsBracket 648e924dd Add support for spread operator a0155f59d First pass at fixing/supporting #425 & #393 c3a505bd8 First pass at fix for #433 79b73b3fe Whitespace 9550877e6 jsTaggedTemplate tweaks 99d658fec Code style tweaks da492ea96 Improvements to import/exports syntax matching 533beaa3c Bug fixes and tweaks c48323a21 Tons of syntax block granularity a0d1abc17 More refactoring 6c2de108f Removing DOM CSS stuff 671e605cd Notes and general cleanup ec96793e9 First attempted pass at jsObjectBlock 943d90b29 spread operator doesn't change indent (#462) c9dc41ff5 working detection of object/array properties (#460) 06d8d160e Improve jsClassMethodDefinition matches d00e8ddf6 get a correct indent for initial operator first 51bf45fe4 limiting for slow function and operator fix (#455) 12bbabac6 timeout the paren searching (#453) 120352b12 readability changes in the indent script (#450) 0f0e4a725 Merge pull request #442 from pangloss/develop f39eb1fa7 Merge pull request #448 from dNItro/patch-1 5b143bd2a change the regex engine according to warning (#449) fcec8b72d Shebang doesn't have to contain env 8c5695764 Merge pull request #445 from pangloss/bounceme-patch-1 b5de6ec2c Update javascript.vim d54b138f9 a comma should be considered an operator fe096c0ee another edge side effect (#443) c5fba22a9 wrapping comments improved (#440) c180b0c32 little bug affecting previous few commits 77387efb2 Update javascript.vim (#437) 27671558c Merge pull request #436 from amadeus/fix-class-definitions bf34e60dc Forcing `class` text to be a keyword 2c7087871 random fixes and improvements (#435) 04e412b77 removing some clutter (#434) 3ebaef31a slight changes continuing from before 7c7add5fe my mistake 75fcd09e7 must actually return a number fd98935f2 more fixes (#432) dc117664c last actual column (#431) 206b85cfb literal indentation in a multiline string (#430) a6e90baf0 minor changes (#429) 61b89844d specify template as a string bf45f9caf Merge pull request #417 from amadeus/fix-lookbehind-limiting 7137e7eac Prevent limited lookbehinds in older vers of vim b3ebfa5d9 c style opening curly braces (#426) aa9a46ae9 for better switch handling (#424) c9eda1f5c template fixes (#422) 8f16491ac indent following line ending in comma with arrow (#420) 10b6c649b Merge pull request #414 from amadeus/fix-lookbehinds 0fecb9295 Temporary fix for older versions of vim 8fb5fa8c6 parentheses regex is thankfully gone (#412) 617ccb50d Update javascript.vim d2fa17618 multiline comment (#408) 304e2ac90 Merge pull request #409 from amadeus/fix-406 50c433e82 Fix Issue 406 e60e4ebf2 Merge pull request #404 from pangloss/misc.fixes 187594a91 Merge pull request #403 from amadeus/fix-261 b4e2faecd Update javascript.vim c4ccee695 Custom jsFuncName for object definitions e8657a8b7 Merge pull request #402 from amadeus/fix-401 dde16a056 Fix class definitions with no name 0e7983dd6 Merge pull request #400 from pangloss/switch 105a4aadf Switch mechanics, indent d7f4728f8 Merge pull request #395 from pangloss/develop 4b6f9c5d9 Bumping version number to v1.0.0 09fde1910 Merge pull request #391 from amadeus/performance-improvements c2bc4c701 Limiting jsRegexpString look behinds 842b0ceaa Improved performance of jsRegexpString 3a4991eaf Improved jsTaggedTemplate performance 508c1a337 Remove syntax sync clear 33eb9fe82 Optimized jsArrowFuncArgs selector f7d220719 Optimized jsGlobalObjects 01ecaf9ab Removing deprecated selectors a7f221678 Optimize JSNoise and JSOperator regexes 9ece5d53b Merge pull request #397 from amadeus/fix-jsdoc-records 1c75d8a3c Fix JSDoc record matching d7a586975 Merge pull request #399 from pangloss/bounceme-patch-1 af08aae55 Merge pull request #398 from amadeus/last-minute-tweaks a51d0f3c4 Update javascript.vim 48067d6dc Add code folding documentation 2f0b1d266 Removing deprecated folding logic e74d75822 Refactored README.md c438302c6 Merge pull request #392 from amadeus/fix-jsdocparam f7cec8c79 Fixing bizarre jsDocParam bug c5250b382 Merge pull request #396 from pangloss/bounceme-patch-1 af37b2253 [-+] not by another 3e1373184 Merge pull request #394 from amadeus/fix-341 1da09b622 Move jsDocTag @file to a different jsDocTag group e9f6a4d4b Merge pull request #389 from bounceme/patch-15 a607a7d36 spanning multiple lines detection 48263c84e Merge pull request #388 from amadeus/lambda-experiments b9feef086 Improved lambda argument handling 20b0eb6f4 Merge pull request #370 from bounceme/patch-6 5b7445e24 Merge pull request #390 from bounceme/patch-16 ff62d63ed #324 6cb0c96b6 old changes reset d388b88c1 Merge pull request #373 from bounceme/patch-8 cc5a971cf Merge pull request #387 from amadeus/add-license 16673accd Adding a license note to the README c4725ca4d Merge pull request #380 from amadeus/temporary-fix-for-arrow-func-args 992b76dc5 Temporarily disabled jsArrowFuncArgs with parens dd95ac26a Merge pull request #385 from bounceme/patch-14 3208fc5d6 Operator first support,including ternary,dot etc. 2adca537e Merge pull request #384 from amadeus/fix-comments-in-class-declaration 7d371ddea Fixing comments in ES6 Class declarations 989deba7e Merge pull request #379 from bounceme/patch-11 17fa18cae simplifies the parentheses handling c8ac1c874 Merge pull request #377 from amadeus/add-brackets-to-destructuring f13009e40 Adding [ and ] to jsFuncArgDestructuring 734cdfc04 Improve one line scope 2881bbab3 Merge pull request #366 from amadeus/arrow-functions-in-class f286f94dc Fix lambda definitions in class definitions 7f5c7b8de Merge pull request #367 from bounceme/patch-1 6858535ab Merge pull request #357 from bounceme/develop 293108695 line following arrow indentation 1833982f7 Merge pull request #361 from pangloss/develop 2d11ec04e Merge pull request #363 from amadeus/misc-fixes 113abc267 Fix jsBlock vs jsFuncBlock priority 36f34b25d Improved function declaration destructuring d8c18d9d3 Fix Comment Regions d87bcd106 Merge pull request #358 from amadeus/arrow-functions 6590bbcdf Fix Generator definitions 82473d0d6 Allow ... in arrow arguments definition 91f860b1b Linking jsArrowFuncArgs to jsFuncArgs ae177c45e First pass at handling lamba arguments c1ea11050 Adding jsFuncBlock support 22f9a0225 Merge pull request #360 from amadeus/update-spread-matching 73232334f Improvements to rest highlighting 1ec6674f6 Merge pull request #359 from amadeus/js-template-braces a57c0a154 Higher specificity for jsTemplate braces 5fea23eee fast attempt for issues with multiple declarations 152f36e7c Merge pull request #354 from amadeus/es6-class-support 559c5f4a2 Merge pull request #337 from juneidysoo/develop 43784bc2a Added jsduck documentation types 995183bd1 ES6 Class Fixes fd99d7778 Adding first pass at ES6 Class support 47b89fbf4 Merge pull request #293 from camsteffen/develop 62c15f602 Issue #294 better one line scope 55da36b58 Merge pull request #348 from zbinlin/sw 412bdd5d8 Merge pull request #309 from vekat/develop dbacf7edb Merge pull request #313 from simono/feature/add-jsDomElemFuncs f099955fb Merge pull request #342 from kevinfahy/bug-nested-template-strings 2b4d3a91f Merge pull request #352 from damionvega/buffer-to-global bc74a6fff Added Buffer to jsGlobalObjects 32137f1f0 Use shfitwidth() instead of &sw in indent/javascript.vim 91fa38c65 Merge pull request #347 from artm/localize-m 68290c3e7 make the m variable script-local 63fdf235c Merge pull request #345 from whitneyit/feature/add-line-comment-support f41da19fc Add jsLineComment to jsFuncArgs c4fda0513 Merge pull request #344 from whitneyit/feature/support-comment-in-func-args ee412e34c Add jsComment to jsFuncArgs ca58cddde Fix nested template variable syntax highlighting 06326d595 Merge pull request #306 from Delapouite/arrow cbe66636a Merge pull request #340 from WChargin/fix-jsAssignmentExpr c024f95c0 Respect 'very-magic' in 'jsAssignmentExpr' regexp 70c621089 Merge pull request #339 from WChargin/arrow-functions 7b9e11ad8 Make arrow-functions one-liners 4c983baf2 Add common DOM Functions de7a60c5c Add dollar sign to jsDocParam matches 49d46bf9e feat(conceal): add arrow_function option 1d8c2677d Merge branch 'develop' 255d5e6d6 Merge pull request #302 from unclechu/develop-prop-synonym 131c2d364 Added jsdoc synonym @prop for @property 924de0eb6 Merge pull request #292 from wbinnssmith/wbinnssmith/async-await-develop e9ee38953 Add support for async and await keywords 3d91f8197 Merge pull request #250 from utix/develop 5cbbdd4e5 Case indent: use cinoptions : and = values 487e0c659 Manage case indent c3787301c Merge pull request #281 from ccarpita/develop dfc554e8a fix: import statement ending regex c606532e3 Merge pull request #279 from jedverity/develop bf0858a18 Adding support for ES7/ES2016 decorators 709fd619e Merge pull request #276 from ccarpita/fix-gh-272 062607d2c Merge pull request #275 from ccarpita/develop 9664e22ab Merge pull request #277 from ccarpita/fix-gh-247 a489b1706 fix GH-247: Single-line comments after import statement 325c0487f fix GH-272: Highlight arrow funcs without parenthesized params 139f6f6ae fix: export region should support es6 class and block openings 2f5a9ef64 Merge pull request #273 from gf3/import-noise-blocks bcf4bfee6 Add jsNoise and jsBlock to jsImportContainer bab4f3944 Merge pull request #269 from AlexanderSkafte/patch-1 9564d9076 Found a typo 70ec8e8a3 Merge pull request #268 from crusoexia/develop 89ce201ec fix issue #107, makes 'arguments' become global keyword d48397093 Merge pull request #265 from lencioni/suffixesadd 02750cff1 Merge pull request #266 from lencioni/constlet 8bd60a331 Add `const` and `let` to indent file 152e2e58a Add `setlocal suffixesadd+=.js` to ftplugin 8a409f7fd Merge pull request #258 from pierreozoux/patch-1 b39a28f65 One liner for Pathogen e628cba07 Merge pull request #252 from jvanbaarsen/patch-1 3afb1731a Vundle requires single quotes e286463c1 Merge pull request #244 from pangloss/tagged-templates 6cad2d987 Fixes #242 e9709a9fb Update README.md b5245213e Merge pull request #240 from pangloss/develop f1efe180a Merge pull request #239 from pangloss/fix-js-class 368bad663 Adds jsClass to all expressions 27f16d5b4 Merge pull request #238 from dragn/develop b022c816a issue#34 b579e3551 Merge pull request #237 from pangloss/tagged-template-fix 9c9be0f48 Merge pull request #236 from pangloss/fix/module-syntax 2180f51d0 Fixes tagged templates on multi lines 7848de5df Fixes module syntax for common js e36841515 Merge pull request #234 from amadeus/indent-fix 5fa60043d A fix for #212 7ea00af3e Merge pull request #233 from pangloss/es6-modules-and-class 6d167f10e Adds support for default arguments b3c811bc5 Adds of operator 2a037505f Adds Promise to globals bed118969 Adds tagged templates 8dbf22456 Adds Map, WeakMap, and Set 687a90049 Adds Symbol to global f4c1c9cf8 Fixes code whitespace issue 97ff4e35c Removes static and super from reserved words fcf7a26b3 More rigid syntax checking c76ae11fb Better module support 1769504fd Adds es6 modules support and change class ca779b431 Merge pull request #232 from amadeus/fix-block-comment 1ee35c5d5 Alignment fixes and removal of deprecated comments 29c2875e6 Renamed and fixed block comments 10b0c75fd Merge pull request #231 from pangloss/develop 736ff8df2 Merge pull request #230 from amadeus/update-vundle-api ead4c2ca3 Updated README to properly reflect Vundle's API 638d628d8 Merge pull request #213 from jedborovik/develop 20d260b32 Merge pull request #229 from JelteF/develop 75d908784 Disable custom gq for comments 2e9424d48 Merge pull request #227 from amadeus/fix-jsAssignmentExpr 54481c98e Added jsNoise matching to jsAssignmentExpr f6b2cc1c0 Merge pull request #223 from davidchambers/exponential-notation 439f702bc Merge pull request #220 from crusoexia/develop 8ecccd62e Merge pull request #225 from ryanoasis/jsdoc-optional-param-highlight 8f0bc59dd modified jsDocParam to highlight jsdoc optional parameter and default value 063e7a0f6 number: match literals such as 1e-3 e84c352a5 add js assignment expression and relate identifier match syntax 7f6a736df Merge pull request #221 from buztard/generator-syntax 5d204c996 Add syntax support for ES6 generators 977e220b3 Merge pull request #217 from pangloss/develop 7f5c2d8f7 Merge pull request #216 from pangloss/feature/eol-terminated-strings dc8b363b9 Simplify string skip pattern 86e376c62 Make strings EOL-terminated 56a4a237b Merge pull request #214 from davidchambers/regexp 9b8524865 regexp: prevent ")" inside character class from terminating group 057ed8049 Add @api annotation 51a337b77 Use a default &tw of 80 for formatting 18106a3db Use &tw instead of hard-coded 80 for formatting 125f931f1 Merge pull request #205 from JelteF/develop 0077e5782 Fix some gq bugs when tw was set c92fbd243 Merge pull request #204 from qiao/closure-compiler-annotations 03bd5d28b Add Closure Compiler annotations 29caa7f70 Merge pull request #201 from JelteF/develop ca201905d Fix gq to not split strings halfway through f01cc1764 Merge pull request #200 from qstrahl/develop 1881c848a Add blurb about pull requests to CONTRIBUTING.md 9b094acf5 Merge pull request #187 from xtian/develop d9baadd38 Allow customizing individual concealing characters 8704ea152 Add some ES6 keywords. 6b057a97e Merge pull request #168 from mrhooray/develop f8122fd1c Merge pull request #176 from pangloss/develop c832002d3 Merge pull request #174 from pangloss/add-contributing 7f6cdb6aa Adding a proper CONTRIBUTING file a1165dca3 Merge pull request #167 from pangloss/develop b17135bda Merge pull request #171 from pangloss/useless-whitespace d6a4e2ef5 Fixing odd indentation levels in syntax file 6921496c3 Merge pull request #170 from pangloss/add-misc-contained 7126372eb Adding additional `contained`s fbe4ca069 Merge pull request #169 from davidchambers/shorthand-character-classes bbf61f287 limit scope in which jsSpecial may be matched d2412a100 regexp: add jsSpecial to jsRegexpSpecial cluster 045cbaff2 support CommonJS syntax highlighting 7e64e51e6 Merge pull request #145 from pangloss/feature/rest-args 2507247f8 Merge branch 'pr/163' into develop 46fe678d3 Add basic support for ECMAScript 6 Template Strings 7bc85e499 Merge pull request #162 from davidchambers/spell-checking cb0fa68ce string: spell-check string literals 2cfdae856 Merge branch 'pr/160' into develop 8fddc6f4f regexp: prevent unescaped "/" in character class from terminating regexp dd7f97727 regexp: prevent escaped "]" from terminating character class c08d3b7eb Merge branch 'pr/154' into develop 3f06dbba1 Add missed @tutorial tag bad20eb0a Case agnostic JSDoc tags a08e6cc33 Merge remote-tracking branch 'source/master' into develop a957e1e34 Merge pull request #149 from iammerrick/develop a6f71af54 remove redundant prototype declaration d52f89954 feature(conceal): add prototype to the list of conceals 7e28dbd4e Merge pull request #146 from eddiemonge/patch-2 ef239d861 JSON is not JavaScript 53b508214 Merge pull request #144 from pangloss/feature/arrow-function 80407fd90 Merge pull request #136 from brutasse/patch-1 4b6c266d1 Fixes issue with spec where rest parameter should be last 52c22556f Adds es6 support for rest parameters in function signatures 3882ae3b4 Adds es6 support for arrow function syntax ca3ee3801 Fix formatting of pathogen instructions 932b67541 Merge branch 'master' of github.com:pangloss/vim-javascript 2d732ba69 Merge branch 'release/0.9.0' 776b7bcff v0.9.0 17a557abb Merge pull request #133 from pangloss/feature/fix-ternary-noise 5cf445046 Fixing jsNoise to work within ternaries f46a38073 Merge pull request #132 from pangloss/feature/funcblock-fix 83f3ed7fa Fixing jsFuncBlock when braces are on a new line ae0ab5279 Merge pull request #131 from pangloss/hotfix/regex-note 764094a0d README note on regexes e1c29c7fc Merge pull request #127 from pangloss/feature/add-jsfunctionkey 304815ab7 Better whitespace support for jsFunctionKey 71b9b5402 Removing `-` as a valid character for jsObjectKey 42d9e77f8 Adds jsFunctionKey to jsObjectKey 159590e1e Merge branch 'release/0.8.0' into develop 75b9896cb Merge branch 'release/0.8.0' a2710cd0e Bump version number: 0.8.0 1c100f332 Merge pull request #123 from pangloss/feature/fix-comments 2cf625ed9 Fixes maintainer comment and removes version 2ea3c2dcd Merge pull request #122 from pangloss/feature/remove-deprecated-groups ce20af34b Removed deprecated highlight groups d5d2e5f2a Merge pull request #121 from pangloss/feature/regex-fixes 2133e7a96 Removing the unneeded matchgroup for jsRegexpGroup 92987e14d A few regexpengine=1 / vim 7.3 fixes 2f2f522e2 Merge branch 'feature/delink-jsFuncCall' into develop 6a89948c8 Unlink `jsFuncCall` from `Function` e34cfbec8 Merge pull request #119 from pangloss/hotfix/nested-ternaries cf75f6998 Fix for nested ternaries ba16004cd Merge pull request #117 from aeosynth/patch-2 35f2609aa Delete .keep 73bac7d18 Merge pull request #114 from pangloss/feature/add-folds 2bede5c7b Adding folds for main JS block types 59fedee13 Merge pull request #112 from pangloss/feature/jsFuncParens-noise f0415ad44 Add `jsFuncParens` to `Noise` 05ed3a07e Merge pull request #109 from pangloss/remove-jsopassign 154affe07 Merge pull request #110 from pangloss/add-js-object-key 878fa130e Adding jsObjectKey b25654850 Removing jsOpAssign 128f153bd Merge branch 'hotfix/nevermind-they-only-do-http' into develop 033062e2e Merge branch 'hotfix/nevermind-they-only-do-http' b8f5d6410 Force http on gitflow link 7d685e1ab Merge branch 'hotfix/nevermind-they-only-do-http' 960152aaa Force http on gitflow link 262b6c132 Merge branch 'hotfix/readme-gitflow-link' into develop 16d70af63 Merge branch 'hotfix/readme-gitflow-link' 25fa2c45d Fix link to gitflow (original article) in README 138be409d Merge branch 'hotfix/readme-gitflow-module-link' into develop b82dc69dd Merge branch 'hotfix/readme-gitflow-module-link' 5896732fc Fix link to gitflow module in README df1e287f8 Merge pull request #108 from pangloss/improve-booleans 6ca76f3f1 Higher specificity for `true` and `false` e68fc0406 Merge branch 'hotfix/readme-spacing' into develop 83c0551bf Merge branch 'hotfix/readme-spacing' 1e154f25e Fix spacing issue in README file c09a0d1db Merge branch 'release/0.1.0' into develop a496df91a Merge branch 'release/0.1.0' cc77bdbb9 Add version number 6e54ebf7c Update README to reflect new git flow development process 3a148155e Add `jsFuncBraces` to `Noise` 8a2e04127 Change `Blocks` to `Braces`: `jsBlocks` and `jsFuncBlocks` 17a0556a3 Update README; mention `beta` branch under `Contributing` 502bf7d6d Merge pull request #102 from amadeus/function-arguments eac3432f5 Removing gratuitous HiLink groups 9d59178e7 Adding `jsArgsObj` keyword d3b37e8a4 Removing deprecated jsType groups eaf58b824 Setting jsFuncBlocks to be part of Function group c8db23b12 Improvements to function, name and arguments 1ab789c64 Merge pull request #104 from amadeus/new-operators be40e8b7d Tweaks to jsOperator, jsKeyword and jsStatement 64d012ce4 Merge pull request #103 from pangloss/revert-readme 68f95638a Fixes README 2452462d9 Merge branch 'rm-indent' f4a03f88c Merge pull request #100 from pangloss/add-ternary-indent-support 9dda622a7 Fixes case where there are nested conditionals 85eeb98ae Adds leading ternary operator indentation support 790e09584 Merge pull request #98 from pangloss/fix-readme aaf41aa1a Merge pull request #99 from pangloss/rm-rake 51e43b6c6 Removes Rakefile fc627c7ef Removes features 399e04839 Adds config options to readme 4c5cf643b Removes html indentation 2666f1526 Merge pull request #96 from amadeus/globals-tweaks e50319120 Removing legacy globals 4d541965b Remove `jsIdentifier` 93a465a64 Add `document` and `window` to global objects 0a01543c3 Merge pull request #90 from qstrahl/develop 207421921 Move program keywords above comments f16ae3c33 Merge pull request #92 from amadeus/isolating-brackets-parents-blocks e193b66dc Isolating curly/square brackets and parenthesis 0073b670e Merge branch 'master' of github.com:pangloss/vim-javascript 3a091a413 Adds contributing guide to readme 588989c63 Merge pull request #84 from robin-allen/master 501ad5d1c Link `jsNan` to `Number` 2a7d133d2 Move `Infinity` to `jsNumber` (from `jsType`) 10e3c2028 Add missing operators 03e0f2454 Merge pull request #87 from qstrahl/develop c7ffd1b35 Link `jsFloat` to `Float` (from `Number`) 7c24dbd93 Update global objects / builtin functions 16aedfcb3 Refactor `jsType` b53a6fdf3 Refactor `Statement` family df84f5756 Move jsNoise higher up c7aabe248 Change highlight links to be more semantically correct fb677cd26 Refactor `jsFunction`/`jsFuncName`/`jsFuncBlock`/`jsOpAssign` 71e9619b8 Add `jsNan` keyword; link to `Constant` highlight group 4fcf5ce57 Update `jsType` and `jsOperator` 80ee77bc7 Add `jsNoise` so users can subdue noisy syntax clutter c242ceecd Link `jsLabel` to `Identifier` highlight group dbf6adbe7 Remove `-` from valid characters for `jsLabel` c59b387e0 Add `jsFuncCall` a4373e6f0 Add `jsIdentifier` 873da1385 Remove `jsSource` and `jsCommonJS`; not part of JavaScript a03016945 Merge pull request #83 from mwcz/back-incompat 56dea5e12 Fix case where line ends with [ within ( 336c41eb0 highlight the parameter of the @alias tag (back-incompat) version 67a7a2f95 remove deprecated jsdoc tags 3f7a3e550 add missing @arg tag 169e10b1e add jsdoc tags from jsdoc v3.2-dev ccdf8b73b Merge pull request #81 from kevnchu/master 575602dca Fixed multiline comment indentation. b21629b37 Merge pull request #78 from brianarn/indent-fix-77 caaa7ee42 Fixing multiline differentiation, fixes #77 22475fcbc detect javascript from shbang f07cc6708 Merge pull request #70 from noprompt/noprompt-regexp 0329a2499 Makes the conceal syntax optional 6049b8f79 Adds concealing to some JS statements 079c5adec Adds fixes for multi var indent for comma first df6bed93b Contain jsRegexpOr 57daa9e1a Add new regular expression syntax groups 870ffca47 Fixes some cases of multiple var indentation 647c33b04 Merge branch 'master' of github.com:pangloss/vim-javascript c8730a184 Merge pull request #68 from hickop/fixes e5bdc9450 Merge remote-tracking branch 'hickop/fixes' into 68 4dee33f79 Adds multiple var indent and comma-first style b64a25099 Merge remote-tracking branch 'utyf/master' c6cf517c7 Correct the fix. bf6397024 Fixes whitespace nits in indent file 5bfea9bd0 Adds futurekeys to syntax highlighting 4fe016837 Renames javaScript to js f62100276 Do not treat line comments with cindent. 4ff3b73b8 Allows CommonJS syntax inside function blocks 8c82cf076 Moves CommonJS from Define to Include 2e9791544 Merge commit '2f3935516d1aea7dc3fbd9a45efec4ba9f0b6d50' 7fab32d95 Adds CommonJS keywords to syntax highlighting d28b72d6c Adds new maintainer info. Removes trailing whitespace ba4f29212 linkify 08c5b1f57 Update README.md 1f68f539c Merge pull request #64 from goatslacker/patch-1 5da54c409 Adds syntax for Identifiers in labeled statements 395f8901b Fix bug in a method that is apparently not called very often (if ever) 3d11c693f improvment of indenting multi-line var statements 77ce5f02a comments in multi-line var statements ae278efc2 adding var statement block indentation 827c47c10 Merge pull request #50 from lepture/master 35b56be77 detect json as javascript 6148d1381 Merge pull request #48 from lepture/master 1066fb67a add readme for html configuration 310c5aa38 replace html #48 e4270b2f4 add feature section in readme 3286328a8 add indent for html 97e663fda add readme a599ac8ec Merge pull request #43 from 3rd-Eden/master de06ab628 Merge pull request #44 from vxsx/syntax-methodof 2a84f6399 Added syntax highlighting for @methodOf tag 4ff72b7e3 Added syntax highlighting for `@api` and `@const` in JSDoc comments a8ce72170 Support FF's sticky regex flag. cc074c30d Fix highlighting in HTML files. 9bc0eb178 Fix indentation after multi-line comments. 5267b4f9c Handle indent correctly in multi-line comments. faabfc83e Merge pull request #41 from int3/master fd8d4465e Improve highlighting of ternary if statements. e80eb0a99 Fix comment typos. c0753fe82 Fix regex character class matching. e66f9019b Merge pull request #37 from indygreg/master 2713e881a detect .jsm files as javascript 2f3935516 Modified syntax groups regular expressions 9990a7676 Applied nornagon's patch. Fixes #19. 2e753d85f Merge pull request #25 from regolith/master abfbc3849 Made @returns {anything goes here} work as well. ccd298869 Curly-braces around the type in @param allows spaces/non-word characters. 6362ba99c Merge pull request #22 from tpope/master ecdf53438 Remove additional fold option meddling e8d6e107f Merge pull request #21 from mando/master 3178b33c7 Syntax file adjusts folding settings 91540f635 Merge pull request #18 from int3/master ed58aec17 Distinguish keyword operations from math expressions. 6b11ba9ca Merge pull request #16 from int3/master 91d9805df Match regexes that contain slashes in character classes. b2c210a1e Merge pull request #13 from tanob/master 569e64c14 Merge pull request #15 from kwellman/master 56cb1680f Merge pull request #11 from keitahaga/env_comment 92bf4e715 Don't add extra indent to each continuation line 66dc2bf47 Fixed issue #12 around indentation with colon and slashes. d5b98a9d7 switch to PreProc syntax group 2a4d50d79 javaScriptEnvComment highlight group cleanup 67be84dd2 added #! comments for executing js in shell abb6c374f Merge remote branch 'wavded/master' 2e34e9171 remove const as a 'future' key, in use for v8, sm 7a7b75f68 Merge remote branch 'upstream/master' dc882db43 separating out this from javaScriptType aad288df4 Added ftdetect 9a5a6b5ed Merge remote branch 'ukstv/master' 891915672 Merge remote branch 'wavded/master' f92d83cc1 added support for newer JSDoc / JSToolkit tags ccdb9becc Added ftdetect c2df2e430 Disambiguate regex strings and mathematical statements cf76032a4 Added javascript ctags patterns and a rake task to install them cb52fbc88 Allow those one line scopes to be on one line and terminated with ; 6a1bb6b32 Updated syntax highlighter region names e94532de7 Imported files REVERT: 3093f26be Squashed 'vim/bundle/javascript/' content from commit bf8edcb git-subtree-dir: vim/bundle/javascript git-subtree-split: e9a59c87703d7d67d9933e68b80732326163a5c5
8 years ago
if getline(1) =~# '^#!.*/bin/\%(env\s\+\)\?node\>'
set ft=javascript
endif
endfun
au BufNewFile,BufRead * call s:SelectJavascript()