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.

481 lines
15 KiB
VimL

" Vim indent file
" Language: Javascript
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
" Maintainer: Chris Paul ( https://github.com/bounceme )
" URL: https://github.com/pangloss/vim-javascript
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
" Last Change: December 4, 2017
" Only load this indent file when no other was loaded.
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 exists('b:did_indent')
finish
endif
let b:did_indent = 1
" Now, set up our indentation expression and keys that trigger it.
setlocal indentexpr=GetJavascriptIndent()
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
setlocal autoindent nolisp nosmartindent
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
setlocal indentkeys+=0],0)
" Testable with something like:
" vim -eNs "+filetype plugin indent on" "+syntax on" "+set ft=javascript" \
" "+norm! gg=G" '+%print' '+:q!' testfile.js \
" | diff -uBZ testfile.js -
let b:undo_indent = 'setlocal indentexpr< smartindent< autoindent< indentkeys<'
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
" Only define the function once.
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 exists('*GetJavascriptIndent')
finish
endif
let s:cpo_save = &cpo
set cpo&vim
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
" indent correctly if inside <script>
" vim/vim@690afe1 for the switch from cindent
" overridden with b:html_indent_script1
call extend(g:,{'html_indent_script1': 'inc'},'keep')
" Regex of syntax group names that are or delimit string or are comments.
let s:bvars = {
\ 'syng_strcom': 'string\|comment\|regex\|special\|doc\|template\%(braces\)\@!',
\ 'syng_str': 'string\|template\|special' }
" template strings may want to be excluded when editing graphql:
" au! Filetype javascript let b:syng_str = '^\%(.*template\)\@!.*string\|special'
" au! Filetype javascript let b:syng_strcom = '^\%(.*template\)\@!.*string\|comment\|regex\|special\|doc'
function s:GetVars()
call extend(b:,extend(s:bvars,{'js_cache': [0,0,0]}),'keep')
endfunction
" Get shiftwidth value
if exists('*shiftwidth')
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
function s:sw()
return shiftwidth()
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
endfunction
else
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
function s:sw()
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
return &l:shiftwidth ? &l:shiftwidth : &l:tabstop
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
endfunction
endif
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
" Performance for forwards search(): start search at pos rather than masking
" matches before pos.
let s:z = has('patch-7.4.984') ? 'z' : ''
" Expression used to check whether we should skip a match with searchpair().
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
let s:skip_expr = "s:SynAt(line('.'),col('.')) =~? b:syng_strcom"
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
let s:in_comm = s:skip_expr[:-14] . "'comment\\|doc'"
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
let s:rel = has('reltime')
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
" searchpair() wrapper
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
if s:rel
function s:GetPair(start,end,flags,skip)
return searchpair('\m'.a:start,'','\m'.a:end,a:flags,a:skip,s:l1,a:skip ==# 's:SkipFunc()' ? 2000 : 200)
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
endfunction
else
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
function s:GetPair(start,end,flags,skip)
return searchpair('\m'.a:start,'','\m'.a:end,a:flags,a:skip,s:l1)
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
endfunction
endif
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
function s:SynAt(l,c)
let byte = line2byte(a:l) + a:c - 1
let pos = index(s:synid_cache[0], byte)
if pos == -1
let s:synid_cache[:] += [[byte], [synIDattr(synID(a:l, a:c, 0), 'name')]]
endif
return s:synid_cache[1][pos]
endfunction
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
function s:ParseCino(f)
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
let [divider, n, cstr] = [0] + matchlist(&cino,
\ '\%(.*,\)\=\%(\%d'.char2nr(a:f).'\(-\)\=\([.s0-9]*\)\)\=')[1:2]
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
for c in split(cstr,'\zs')
if c == '.' && !divider
let divider = 1
elseif c ==# 's'
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
if n !~ '\d'
return n . s:sw() + 0
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
endif
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
let n = str2nr(n) * s:sw()
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
break
else
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
let [n, divider] .= [c, 0]
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
endif
endfor
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
return str2nr(n) / max([str2nr(divider),1])
endfunction
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
" Optimized {skip} expr, only callable from the search loop which
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
" GetJavascriptIndent does to find the containing [[{(] (side-effects)
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
function s:SkipFunc()
if s:top_col == 1
throw 'out of bounds'
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
elseif s:check_in
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
if eval(s:skip_expr)
return 1
endif
let s:check_in = 0
elseif getline('.') =~ '\%<'.col('.').'c\/.\{-}\/\|\%>'.col('.').'c[''"]\|\\$'
if eval(s:skip_expr)
return 1
endif
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
elseif search('\m`\|\${\|\*\/','nW'.s:z,s:looksyn)
if eval(s:skip_expr)
let s:check_in = 1
return 1
endif
else
let s:synid_cache[:] += [[line2byte('.') + col('.') - 1], ['']]
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
endif
let [s:looksyn, s:top_col] = getpos('.')[1:2]
endfunction
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
function s:AlternatePair()
let [pat, l:for] = ['[][(){};]', 2]
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
while s:SearchLoop(pat,'bW','s:SkipFunc()')
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
if s:LookingAt() == ';'
if !l:for
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
if s:GetPair('{','}','bW','s:SkipFunc()')
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
return
endif
break
else
let [pat, l:for] = ['[{}();]', l:for - 1]
endif
else
let idx = stridx('])}',s:LookingAt())
if idx == -1
return
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
elseif !s:GetPair(['\[','(','{'][idx],'])}'[idx],'bW','s:SkipFunc()')
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
break
endif
endif
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
endwhile
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
throw 'out of bounds'
endfunction
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
function s:Nat(int)
return a:int * (a:int > 0)
endfunction
function s:LookingAt()
return getline('.')[col('.')-1]
endfunction
function s:Token()
return s:LookingAt() =~ '\k' ? expand('<cword>') : s:LookingAt()
endfunction
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
function s:PreviousToken(...)
let [l:pos, tok] = [getpos('.'), '']
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
if search('\m\k\{1,}\|\S','ebW')
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
if getline('.')[col('.')-2:col('.')-1] == '*/'
if eval(s:in_comm) && !s:SearchLoop('\S\ze\_s*\/[/*]','bW',s:in_comm)
call setpos('.',l:pos)
else
let tok = s:Token()
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
endif
else
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
let two = a:0 || line('.') != l:pos[1] ? strridx(getline('.')[:col('.')],'//') + 1 : 0
if two && eval(s:in_comm)
call cursor(0,two)
let tok = s:PreviousToken(1)
if tok is ''
call setpos('.',l:pos)
endif
else
let tok = s:Token()
endif
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
endif
endif
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
return tok
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
endfunction
function s:Pure(f,...)
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
return eval("[call(a:f,a:000),cursor(a:firstline,".col('.').")][0]")
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
endfunction
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
function s:SearchLoop(pat,flags,expr)
return s:GetPair(a:pat,'\_$.',a:flags,a:expr)
endfunction
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
function s:ExprCol()
if getline('.')[col('.')-2] == ':'
return 1
endif
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
let bal = 0
while s:SearchLoop('[{}?:]','bW',s:skip_expr)
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
if s:LookingAt() == ':'
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
if getline('.')[col('.')-2] == ':'
call cursor(0,col('.')-1)
continue
endif
let bal -= 1
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
elseif s:LookingAt() == '?'
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
if getline('.')[col('.'):col('.')+1] =~ '^\.\d\@!'
continue
elseif !bal
return 1
endif
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
let bal += 1
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
elseif s:LookingAt() == '{'
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
return !s:IsBlock()
elseif !s:GetPair('{','}','bW',s:skip_expr)
break
endif
endwhile
endfunction
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
" configurable regexes that define continuation lines, not including (, {, or [.
let s:opfirst = '^' . get(g:,'javascript_opfirst',
\ '\C\%([<>=,.?^%|/&]\|\([-:+]\)\1\@!\|\*\+\|!=\|in\%(stanceof\)\=\>\)')
let s:continuation = get(g:,'javascript_continuation',
\ '\C\%([<=,.~!?/*^%|&:]\|+\@<!+\|-\@<!-\|=\@<!>\|\<\%(typeof\|new\|delete\|void\|in\|instanceof\|await\)\)') . '$'
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
function s:Continues()
let tok = matchstr(strpart(getline('.'),col('.')-15,15),s:continuation)
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
if tok =~ '[a-z:]'
return tok == ':' ? s:ExprCol() : s:PreviousToken() != '.'
elseif tok !~ '[/>]'
return tok isnot ''
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
endif
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
return s:SynAt(line('.'),col('.')) !~? (tok == '>' ? 'jsflow\|^html' : 'regex')
endfunction
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
" Check if line 'lnum' has a balanced amount of parentheses.
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
function s:Balanced(lnum,line)
let l:open = 0
let pos = match(a:line, '[][(){}]')
while pos != -1
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
if s:SynAt(a:lnum,pos + 1) !~? b:syng_strcom
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
let l:open += matchend(a:line[pos],'[[({]')
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 l:open < 0
return
endif
endif
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
let pos = match(a:line, !l:open ? '[][(){}]' : '()' =~ a:line[pos] ?
\ '[()]' : '{}' =~ a:line[pos] ? '[{}]' : '[][]', pos + 1)
endwhile
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
return !l:open
endfunction
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
function s:OneScope()
if s:LookingAt() == ')' && s:GetPair('(', ')', 'bW', s:skip_expr)
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
let tok = s:PreviousToken()
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
return (count(split('for if let while with'),tok) ||
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
\ tok =~# '^await$\|^each$' && s:PreviousToken() ==# 'for') &&
\ s:Pure('s:PreviousToken') != '.' && !(tok == 'while' && s:DoWhile())
elseif s:Token() =~# '^else$\|^do$'
return s:Pure('s:PreviousToken') != '.'
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
elseif strpart(getline('.'),col('.')-2,2) == '=>'
call cursor(0,col('.')-1)
return s:PreviousToken() != ')' || s:GetPair('(', ')', 'bW', s:skip_expr)
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
endif
endfunction
function s:DoWhile()
let cpos = searchpos('\m\<','cbW')
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
while s:SearchLoop('\C[{}]\|\<\%(do\|while\)\>','bW',s:skip_expr)
if s:LookingAt() =~ '\a'
if s:Pure('s:IsBlock')
if s:LookingAt() ==# 'd'
return 1
endif
break
endif
elseif s:LookingAt() != '}' || !s:GetPair('{','}','bW',s:skip_expr)
break
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
endif
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
endwhile
call call('cursor',cpos)
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
endfunction
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
" returns total offset from braceless contexts. 'num' is the lineNr which
" encloses the entire context, 'cont' if whether a:firstline is a continued
" expression, which could have started in a braceless context
function s:IsContOne(cont)
let [l:num, pind] = b:js_cache[1] ?
\ [b:js_cache[1], indent(b:js_cache[1]) + s:sw()] : [1,0]
let [ind, b_l] = [indent('.') + !a:cont, 0]
while line('.') > l:num && ind > pind || line('.') == l:num
if indent('.') < ind && s:OneScope()
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
let b_l += 1
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
elseif !a:cont || b_l || ind < indent(a:firstline)
break
else
call cursor(0,1)
endif
let ind = min([ind, indent('.')])
if s:PreviousToken() is ''
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
break
endif
endwhile
return b_l
endfunction
function s:IsSwitch()
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
return search('\m\C\%'.join(b:js_cache[1:],'l\%').
\ 'c{\_s*\%(\%(\/\/.*\_$\|\/\*\_.\{-}\*\/\)\@>\_s*\)*\%(case\|default\)\>','nW'.s:z)
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
endfunction
" https://github.com/sweet-js/sweet.js/wiki/design#give-lookbehind-to-the-reader
function s:IsBlock()
let tok = s:PreviousToken()
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
if join(s:stack) =~? 'xml\|jsx' && s:SynAt(line('.'),col('.')-1) =~? 'xml\|jsx'
let s:in_jsx = 1
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
return tok != '{'
elseif tok =~ '\k'
if tok ==# 'type'
return s:Pure('eval',"s:PreviousToken() !~# '^\\%(im\\|ex\\)port$' || s:PreviousToken() == '.'")
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
elseif tok ==# 'of'
return s:Pure('eval',"!s:GetPair('[[({]','[])}]','bW',s:skip_expr) || s:LookingAt() != '(' ||"
\ ."s:{s:PreviousToken() ==# 'await' ? 'Previous' : ''}Token() !=# 'for' || s:PreviousToken() == '.'")
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
endif
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
return index(split('return const let import export extends yield default delete var await void typeof throw case new in instanceof')
\ ,tok) < (line('.') != a:firstline) || s:Pure('s:PreviousToken') == '.'
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
elseif tok == '>'
return getline('.')[col('.')-2] == '=' || s:SynAt(line('.'),col('.')) =~? 'jsflow\|^html'
elseif tok == '*'
return s:Pure('s:PreviousToken') == ':'
elseif tok == ':'
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
return s:Pure('eval',"s:PreviousToken() =~ '^\\K\\k*$' && !s:ExprCol()")
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
elseif tok == '/'
return s:SynAt(line('.'),col('.')) =~? 'regex'
elseif tok !~ '[=~!<,.?^%|&([]'
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
return tok !~ '[-+]' || line('.') != a:firstline && getline('.')[col('.')-2] == tok
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
endif
endfunction
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
function GetJavascriptIndent()
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
call s:GetVars()
let s:synid_cache = [[],[]]
let l:line = getline(v:lnum)
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
" use synstack as it validates syn state and works in an empty line
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
let s:stack = [''] + map(synstack(v:lnum,1),"synIDattr(v:val,'name')")
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
" start with strings,comments,etc.
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
if s:stack[-1] =~? 'comment\|doc'
if l:line !~ '^\s*\/[/*]'
return l:line =~ '^\s*\*' ? cindent(v:lnum) : -1
endif
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
elseif s:stack[-1] =~? b:syng_str
if b:js_cache[0] == v:lnum - 1 && s:Balanced(v:lnum-1,getline(v:lnum-1))
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
let b:js_cache[0] = v:lnum
endif
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
return -1
endif
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
let s:l1 = max([0,prevnonblank(v:lnum) - (s:rel ? 2000 : 1000),
\ get(get(b:,'hi_indent',{}),'blocklnr')])
call cursor(v:lnum,1)
if s:PreviousToken() is ''
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
return
endif
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
let [l:lnum, lcol, pline] = getpos('.')[1:2] + [getline('.')[:col('.')-1]]
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
let l:line = substitute(l:line,'^\s*','','')
let l:line_raw = l:line
if l:line[:1] == '/*'
let l:line = substitute(l:line,'^\%(\/\*.\{-}\*\/\s*\)*','','')
endif
if l:line =~ '^\/[/*]'
let l:line = ''
endif
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
" the containing paren, bracket, or curly. Many hacks for performance
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
call cursor(v:lnum,1)
let idx = index([']',')','}'],l:line[0])
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
if b:js_cache[0] > l:lnum && b:js_cache[0] < v:lnum ||
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
\ b:js_cache[0] == l:lnum && s:Balanced(l:lnum,pline)
call call('cursor',b:js_cache[1:])
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
else
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
let [s:looksyn, s:top_col, s:check_in, s:l1] = [v:lnum - 1,0,0,
\ max([s:l1, &smc ? search('\m^.\{'.&smc.',}','nbW',s:l1 + 1) + 1 : 0])]
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
try
if idx != -1
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
call s:GetPair(['\[','(','{'][idx],'])}'[idx],'bW','s:SkipFunc()')
elseif getline(v:lnum) !~ '^\S' && s:stack[-1] =~? 'block\|^jsobject$'
call s:GetPair('{','}','bW','s:SkipFunc()')
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
else
call s:AlternatePair()
endif
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
catch /^\Cout of bounds$/
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
call cursor(v:lnum,1)
endtry
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
let b:js_cache[1:] = line('.') == v:lnum ? [0,0] : getpos('.')[1:2]
endif
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
let [b:js_cache[0], num] = [v:lnum, b:js_cache[1]]
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
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
let [num_ind, is_op, b_l, l:switch_offset, s:in_jsx] = [s:Nat(indent(num)),0,0,0,0]
if !num || s:LookingAt() == '{' && s:IsBlock()
let ilnum = line('.')
if num && !s:in_jsx && s:LookingAt() == ')' && s:GetPair('(',')','bW',s:skip_expr)
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
if ilnum == num
let [num, num_ind] = [line('.'), indent('.')]
endif
if idx == -1 && s:PreviousToken() ==# 'switch' && s:IsSwitch()
let l:switch_offset = &cino !~ ':' ? s:sw() : s:ParseCino(':')
if pline[-1:] != '.' && l:line =~# '^\%(default\|case\)\>'
return s:Nat(num_ind + l:switch_offset)
elseif &cino =~ '='
let l:case_offset = s:ParseCino('=')
endif
endif
endif
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
if idx == -1 && pline[-1:] !~ '[{;]'
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
call cursor(l:lnum, lcol)
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
let sol = matchstr(l:line,s:opfirst)
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
if sol is '' || sol == '/' && s:SynAt(v:lnum,
\ 1 + len(getline(v:lnum)) - len(l:line)) =~? 'regex'
if s:Continues()
let is_op = s:sw()
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
endif
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
elseif num && sol =~# '^\%(in\%(stanceof\)\=\|\*\)$' &&
\ s:LookingAt() == '}' && s:GetPair('{','}','bW',s:skip_expr) &&
\ s:PreviousToken() == ')' && s:GetPair('(',')','bW',s:skip_expr) &&
\ (s:PreviousToken() == ']' || s:LookingAt() =~ '\k' &&
\ s:{s:PreviousToken() == '*' ? 'Previous' : ''}Token() !=# 'function')
return num_ind + s:sw()
else
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
let is_op = s:sw()
endif
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
call cursor(l:lnum, lcol)
let b_l = s:Nat(s:IsContOne(is_op) - (!is_op && l:line =~ '^{')) * s:sw()
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
endif
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
elseif idx == -1 && s:LookingAt() == '(' && &cino =~ '(' &&
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
\ (search('\m\S','nbW',num) || s:ParseCino('U'))
let pval = s:ParseCino('(')
if !pval
let [Wval, vcol] = [s:ParseCino('W'), virtcol('.')]
if search('\m\S','W',num)
return s:ParseCino('w') ? vcol : virtcol('.')-1
endif
return Wval ? s:Nat(num_ind + Wval) : vcol
endif
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
return s:Nat(num_ind + pval + searchpair('\m(','','\m)','nbrmW',s:skip_expr,num) * s:sw())
endif
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
" main return
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
if l:line =~ '^[])}]\|^|}'
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
if l:line_raw[0] == ')'
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
if s:ParseCino('M')
return indent(l:lnum)
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
elseif num && &cino =~# 'm' && !s:ParseCino('m')
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
return virtcol('.') - 1
endif
endif
return num_ind
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
elseif num
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
return s:Nat(num_ind + get(l:,'case_offset',s:sw()) + l:switch_offset + b_l + is_op)
endif
Squashed 'vim/bundle/javascript/' changes from d2ccd306f..f71693e27 f71693e27 cleanup (#1099) 73f3d0f2c don't move cursor to find case statement (#1097) 44581860e improve last commit e110653ae fix for unnested js in <script> d3d8a9772 cleaning (#1096) 4c0a55442 matchend 7c73d8e1f better conditional for comment f3bf70a84 date ee990797a fix chaining arrows scope (#1087) 0922d26d1 dont re-add to cache (#1081) f973b6f84 Fix jsObjectKey for keys that start with numbers 85804bbfc optimize a0e1442d8 cleaning (#1079) b2935feeb make elseif 1f65d0dbd remove unneeded redeclaration cea724c0e move html var decl 8eba14157 move comment 4a8f6f714 b var making 77e4bf814 one time sourced 0f1f71f2f PToken() optimize (#1070) 3b21b5bad Add WeakSet to syntax keywords (#1069) 7145139cf jsx context fix (#1068) 4bd734e3b more accurate do->while (#1062) e55c27ea8 Changed recommended foldmethod setting in README (#1061) 9404db5b8 clean: remove cursor call (#1060) 3ed61c9d4 adding optional chaining operator (#1053) b58952e97 (fix) Match no argument arrow functions (#1059) e5769400a cleanup of syntax regexes (#1057) fcef6389a missed 30dcd712a nonstandard multichar ops (#1054) 9802bca51 fill cache holes (#1052) bc86cbb38 forward parse for switch statement (#1051) de388ef09 bugfix: skipexpr 1ff6ac3b5 fix class method name (#1049) 9bb06bf1c Update javascript.vim aeb10fb76 date, to submit to vim/vim 465bff545 use l:var 7709a995b unneed (#1046) aca57d9a8 keep number type, clean a32b7b049 remove timeout arg (#1045) 6f3d40cfc fix 'of' keyword in IsBlock() (#1044) 7043d1030 more code erasing (#1043) c217c783b misc (#1042) 9c3945000 clean (#1041) 00624225c use &synmaxcol (#1039) 7198f32de raise line length guard 1795998a7 Update ISSUE_TEMPLATE.md 93d56325f Update ISSUE_TEMPLATE.md 7da26c25b fix md 745344246 emphasize code snippet a4fd0773b clean, eval string type,etc (#1036) 31232fe53 collection regex, various (#1035) ee376ba5c reuse more code, various fixes 867c3ccdb Whitespace 0149cb12b Fix yield in parens bc60e0d00 Correctly highlight function bodies with an unnamed, generic function. c737dd7b9 shorthand method: refactor (#1030) git-subtree-dir: vim/bundle/javascript git-subtree-split: f71693e2784594a378930e261955a85ea37dd03d
7 years ago
let nest = get(get(b:,'hi_indent',{}),'blocklnr')
if nest
return indent(nest) + s:sw() + b_l + is_op
endif
Squashed 'vim/bundle/javascript/' changes from e9a59c877..d2ccd306f d2ccd306f use generic equivalent 3ea6ed6ac Trim optimize (#1024) c03aee798 add 'mjs' extension (#1023) c5e5e2012 refactor, mergeable (#1018) dcb4e4762 cleaning, small optimization? (#1015) 7097cdad8 Small Flow return fix 739562910 more simplify of PCL (#1013) 8ea46f3e6 neater/faster iterating 6ccc1a713 Fix certain flow annotations within classes fc80419fd trivial indent fixes / updates (#1007) 09d7c7051 faster/smaller cache access, SynId function (#1005) 7175ba5e6 missed a condition last time ff851de60 improve conditionals all over (#1002) 37a68c3c7 Add fold to various flow regions dd1f74fb8 Another quick flow patch bc5b02484 A few more fixes 008e98985 Trying out some flow tweaks e4870b4f5 More fixes for flow 0353342bc Fix for jsFlowOperator 243932e58 A ton of flow fixes ff5e284f4 exponentiator, operator things (#1001) f0ce7ffa9 cino-W (#1000) cc84aa380 Merge pull request #999 from wavded/patch-2 ef74079e9 Add @async tag support. 603ec7156 cleaning, indent (#997) be46c1c4d document and improve class cases (#996) 9b2a032c3 fix list size error with setpos() 7684f3cfc magic 1bd80e092 edge case fix: prevcodeline() and c style comments (#994) 72f4a95b2 fix for `[*` failing 43097941a let [] =[], minor formatting (#990) aba8630e2 Making jsModuleGroup foldable 517d37c97 Merge pull request #992 from pangloss/async-fix 97203f192 async/await should be an @jsExpression ebc6fd267 fix expr_col case 14cf98883 remove semicolon flag; flow (#989) e0472fc50 indent file cleaning (#988) 4eac815fa cleaner searcpair workaround e6f514324 IsCont trivial refactor (#986) efd4f1f5e Small fix for Flow class annotations 8d6fbfb41 lex type import (#984) f20659188 small logic reversal 438990878 date, cleaning 271f73123 clean up Syn e14cfb6a0 flowtype requiring (#982) 2b0889fa8 naturalize (#981) 0b44edb6f Pcodeline (#980) 868c15b1c non-interrupting limit info in debugging 42c9451ab more lookbehind needed... classes 1cb44af82 make var naming consistent (#977) 6f880fe81 fix for non-inheriting (#976) 4e3c3c0d6 small logic fix e5cdee7b2 assure switch isn't method (#974) 931dbd5b6 cino-M (#971) a5a9a17d4 add possible ident shorthand (#970) 7ba092739 cleaner generator shorthand fix (#969) 2dfe7cded star shorthand workaround 9ea6e5df1 date 388c9cbc4 Nat is unary 147e50669 remove script-global, range reversal, max (#965) 18cd99029 cino-star behavior; remove s:W references e092e7fce star comment find, as loop (#963) eb5f00f67 Small fix for jsTaggedTemplate beba61e8e trivial reading stuff and date 1d28953b1 clearer -1 check 28281d25a simplify isBlock and doWhile (#962) 4242a4b5f remove function setup 2e24d89cc fix wording f5f32a9f4 Update README.md bb2c6857d cino-= and misc style changes: indent.vim (#959) 89c3d920e variable of current token in functions (#958) 21a8a7ed8 misc:refactor (#957) dc0bb4748 cleaning: indent.vim (#956) d3068263e date d9820f993 remove comment hack 5f0163963 no eval or confusing viml workarounds (#954) e73b32207 deduplication (#953) 809b6beb4 move state out of try block 82b142242 test fix (#952) 9ce4ea852 misc: go back to l:pos only when needed; (#947) d12dc6156 just use dict value 18c2c847e Merge pull request #925 from pangloss/issue-template d33561172 Improve issue template 7d8a2b117 Adding an ISSUE_TEMPLATE.md a898a9780 Merge pull request #942 from pangloss/bounceme-patch-1 c8aa5ed52 fix wrong func call 244985f10 don't use cursor() in conditional 573879c9d Reuse pos restorer, misc cleaning (#943) 0c26c4808 fix #940: ternary expression returning arrow 81166acad cache synID calls (#938) a1f36ff79 move s: vars 5b2f56d75 Fix buffer variables inited only once (#941) 65dbdfc45 Fix variable typo (#939) f7ffea095 Misc: indent (#937) 896bb54d2 configurable syntax skipping (#936) 53b043924 misc: indent.vim (#935) 259f5282f (silent) exception same as within searchpair (#934) 1e59f8488 break at html too fcdacf6f7 break search at col:1 (#933) ac71ceca3 another str2nr() 45d092f65 str2nr() to prevent octal e573aa0b6 unneeded var declare (#932) 317125e18 &cino non-regex (#931) 2bca9c6f6 misc fixes, non-critical stuff (#929) 10492a89d cino-U (#928) 145fdc76d script-tag var access (#927) 3c2923e43 dont depend on loop error handling 2c8733ed7 vim script minify (#924) 021a5ff80 simpler, float less, cino parse (#926) 5511721b1 compiler header 23f5d0ed1 update comments 0d7ad9320 better do -> while "switch" 1a7a8fc8d no pos movement, exit correctly in prevline() d8729f221 string detecting for prevline() a327247d1 add note ceae62037 Merge pull request #921 from pangloss/fix-prototype ff9918c7c Fix prototype matching 431aa0ed1 Merge pull request #920 from pangloss/add-await-js-expression 5e85c21d0 Adding await to @jsExpression 665501ba2 various indent cleanups (#917) 55651ba6d add "es" extension (#916) b6c00a194 move flow detect to ft detect file (#913) f786167f9 Merge pull request #912 from sebcode/master 0cc170159 Allow flowtype annotation for arrow func return val c87bb4345 auto load flow file with comment header (#911) 8fb55c5be minor change to limit 9cbe46c4a limit expr_col b954ab478 ternary assignment 4e64bcff9 cleaner limiting in html bea0e2096 change buffer variable for html 3ca2f636d fix, keep cache valid in tag 10f71931a don't move to scriptTag 87ecc8742 fix html without pangloss repo syntax file (#909) ac4efdca0 indenting for first line after script tag (#908) 1e4ec0aaf also disregard flow bracket as operator 8e51618ba fix embedded js (#907) 63355ea70 fix: add jsImport and jsExport to htmlJavaScript (#906) 3530116b5 builtin optimization, fail condition (#904) d2bc31992 more pattern simplifications (#903) fac43e7d2 explicit match of cino parse (#902) a24f345f4 dot isblock 90cf82a9f Remove a call to trim() in Onescope (#900) afe6b8bf2 do while; experiment (#899) 0034e332b strpart instead of substrings,date (#898) d87476f30 simplify balance optimization (#897) 289eca381 use search() 'e' flag to simplify regex 015004855 case 4a442bade virtual (#894) 669262388 replace tabs shell comment e79107b49 add small note about testing in shell (#890) 2ad6da791 small code style fixes 1f9e29243 Onescope() refining (#889) 688d34b2e fix type as identifier (#887) a2259d32b flow type ob (#886) 5ff6d5071 more prevcodeline improving (#884) 6c2007980 small fix 6007c680e refactor Prevcodeline (#883) d8ffdf71e remove extra func call 867f50038 remove eval in continues() (#881) 95405f8e3 shiftwidth() compat (#879) d79de5b4f expr_col switch? (#878) a35306e0a save_pos instead of try/finally , date (#877) 40c437fd1 reimplement Trim() (#876) 6be84aa6b alternating balanced() (#874) f92f5814e use float support rather than reimplement it (#873) 44b70ce73 remove pointless format flag (#872) 1ad5378d6 cleaning (#870) c3892c40a reverse logic,skipfunc (#869) 57c837045 regex in token (#868) b99793534 optimization in alternatepair() (#867) 0f36d47e8 make search magic 6fad4c536 document cino-w 73a8a137d cino-w (#864) eb0465274 more c-parse fixes ab5f29eee safe list value 6968e93e3 cino-parsing helper (#862) 5824735cd cino-b (#861) c07c72700 unneeded condition d1b6d908d safer check for paren/cino 4b219f6c9 doc 6c0bd6505 cino=( (#860) 53c547bbb extends, isBlock 4dc80ee25 regex explicit case 203126dae remove quote inaccuracy 05e17e4d4 if ptoken fails, restore cursor (#858) 23e5fa204 fix jsx detection (#857) f70263dc6 clean up continues() (#856) 51e0cc54f more likely condition first (#855) 3344f1388 more keywords/operators (#854) 7072eb54a new operator 97a8ab46e cino option 220ce28ee reduce if nesting, isBlock consistency (#853) 6e8811c32 Enabling spell checking on template strings (#834) e3a0e1f55 ternary algorithm simplified c63905600 regex case fixes (#850) 3bb778ee7 faster tern col regex (#849) 9cf48ee3d string group name 18bc58a02 refactor isBlock (#846) 38c2b557b full syntax check if inside jsx (#844) 742f55bf1 syn related indent fixes (#843) 545ab1a90 Merge pull request #842 from pangloss/misc-bugfixes 5c526adcb Fixes to some comment chaining 1f1d5ebf3 unicode regex flag (#840) d993dda7d Merge pull request #838 from pangloss/bugfix/js-func-call 994b78bf7 Fix for jsFuncCall 871ab2959 prevent octal conversion (#835) 9ada8ab92 switch_offset min value (#832) 8d0d45349 template inner code (#830) b7677c924 float-less cino parsing (#828) 307eb850d better zero char solution bf2f6a8e4 do inc/dec/arrow detection in function (#827) 2195ce010 safer GetPair condition (#824) 432d01b2d Merge pull request #823 from pangloss/ret c354c479e Merge pull request #822 from qstrahl/fix-js-class-value-arrow-function 1ec994774 shorten final return 8b55755e9 Remove keepend from jsClassValue region 4e1ec95dc fix 9d24edb47 accurate Trim and prev_token funcs (#817) 8526ce56e Merge pull request #814 from pangloss/feature/js-object-prop 019e523aa combine ind logic (#816) 67b90c737 First pass at `jsObjectProp` 3cf8f3d0b Merge pull request #801 from pangloss/feature/new-bind-syntax 22c7e7b3e jsBlockLabels are not allowed if :: 7c95ee824 First pas at :: support 9f3ecf459 Merge pull request #815 from pangloss/jstemplateexpression 88c85d9ea Renaming jsTemplateVar -> jsTemplateExpression 690f23ea8 fix for inc/dec operators and blocks (#811) 18cbb4bde cleaning (#810) 0367cb5d5 add compiler plugin (#808) f54c861a8 remove search call (#809) 96a5b5ec6 remove z flag 53dea7aff cleaning,search flags (#807) 56f6fbbe4 improve regex at skip_func (#806) f8e9c1a7f check for lines which contain at least 2 `/` (#804) cfaa6e4ef Merge pull request #789 from wavded/patch-1 7050c3ad9 Merge pull request #802 from pangloss/bugfix/template-var-keepend cb7d5aeae Attempted fix for jsTemplateVar ce415c397 Merge pull request #778 from pangloss/feature/block-support 9148cd38d Add extend to jsTernaryIf 659cbf3de Fix switch cases from being detected as labels f11f948c0 Adding support for block statement labels 4839870f2 Fix jsTernaryIf and jsObjects fe92d4991 First pass at Block support 9e9e2c4f3 remove added s:Trim arg bd9b70af0 remove html comment faa1a4bf4 cleaning (#799) 685219245 Fix Function capitalization in Flow annotations b3a1e8a87 add await d817bd4f1 re-add throw bba35b25c change a keyword 58fdba82d cleaning 3ee5de406 fix keywords 043bb4aa0 fix destruct dce5a10a0 remove check of keyword 2f182a1f4 generic search function (#795) 0b9c46e46 remove flow cases 006f889b4 exact object indent (#793) 2c44678d3 Merge pull request #791 from pangloss/fix-empty-arrow-args d8a6fef99 Bugfix for jsArrowFuncArgs aa3a16993 various fixes (#790) 17bbd02c1 ternary function (#788) ff1fc56de Improve @typedef syntax for namepath. ad3261e92 magic portability (#786) a584a283b Merge pull request #787 from pangloss/add-comments-to-destructuring-blocks 364309983 Adding jsComment to destructuring blocks 8e3ae21c3 fix case block logic 36ebd9f8a rename,refactor, jump label support for isblock() (#775) c2f65cd3f Merge pull request #782 from pangloss/fix-async 1a7632e6c Fixing how async is used 2f8d1fe2e Merge pull request #781 from pangloss/misc-flow-tweaks 7cb3abf71 Misc flow fixes 799274716 Merge pull request #780 from pangloss/flow-fix ddefa30d1 Adding Flow wildcard support 3ef7bfd18 Merge pull request #779 from pangloss/misc-bugfixes 431e22926 Fix require in jsGlobalNodeObjects c347e2da1 Adds __dirname & __filename to jsGlobalNodeObjects f60eb29ea Merge pull request #777 from pangloss/bugfix/add-spread-to-jsblock 6f01baa66 Adding jsSpreadExpression to jsBlock 28732ef1a Merge pull request #776 from pangloss/bugfix/js-class-value c12ae7609 An attempted fix for jsClassValue region end 521f4eda7 jump label support (#772) a6176945c add other comments 8043c4bc0 detect string, prevline (#771) ccc9f3017 improvements to prevcodeline() (#769) da1eee445 odd comments, shebang (#768) ce0f529bb refactor s:OneScope() (#766) 1cb6f1094 cleaner loop (#765) f33b9ed81 cleaning, edge case with keyword (#764) 117c72721 more edge case accuracy,refactoring (#761) 294563c61 &cino format 63daab731 better &cino parsing (#759) 8e17e2330 Detect .es6 files as JavaScript (#199) 25cff858e don't move cursor at default label 3583822da reflow comment 4149f1d30 cleaning continued braceless statement (#758) 9db487d00 add option in s:prev_token() (#757) 1a17ce8c6 Merge pull request #756 from pangloss/array-destructuring-default-value-support 0dd9ad3b4 Fix array destructuring as func arg definitions 0bf390d9c optimize indent with basic syntax file (#753) afecff2b5 v:lnum cleaning 3cc3ef7c1 cleaning (#751) e80725868 Revert "match isk in token regex" (#750) 82f064a12 match isk in token regex (#749) 039c611e1 refactor v:lnum cleaning (#748) d81b076b5 make regex for token() more intuitive (#746) a210f3916 fix code comment 554ae9b24 package-manager info (#744) d377f45bd regex simplified in trim() (#745) d2bc5d49e remove conditional 9e0aa00b6 clarify readme ba9501bfc markdown fixes 41a3bceb4 more readme fixes df14847ad fix readme 9f4772175 Added conceal for no-argument arrow functions - either `()=>` or `_=>` (#735) 6d81ec817 only Trim() if in a block (#743) 66b25d97c Indent: use previous Trim, with new interface (#741) 14919946c date, code documenting 7ceb23304 misc indent changes (#739) 982f699de small optimization (#738) 1bc948137 date, minor regex c1d4b3b07 keywords used as props (#737) 25ceb5578 cleaning, Rework prevcodeline() (#736) edf962fb5 Merge pull request #734 from pangloss/fix-flow-import-type 3dd27d631 Adding support for Flow type imports 18ff935c9 optimization: no continuation at block start (#733) 8265877f7 indentkeys (#732) 1801887f2 operator cleaning (#729) 5e024dc2e Merge pull request #731 from pangloss/refactor-import-export 66f120cb0 Improve default handling 3873adbff Completely refactored how import/export work 894e26d85 Merge pull request #727 from pangloss/fix-import-region 91b0a0da0 Fix end pattern for import region c92a0cad8 paren start line as baseline in blocks (#725) a87c94438 unneeded token call (#722) 209b57f9d remove dead code, rename function, date (#721) ae9324a61 improve ptoken (#719) bac863e62 Merge pull request #718 from pangloss/fix-spread-in-brackets 3efcf3111 Adds jsSpreadExpression to jsBracket 7b9c64f15 Merge pull request #717 from pangloss/improve-class-definition b18c6b88a Basic improvement to jsClassDefinition f4245c4f7 more correct comment match (#714) 737c23845 faster prevline (#713) b8c62023d add operators, regex experiment (#711) 540d3a572 improve regex for s:Trim (#710) b3b85e34b trim from start of comment sequence (#709) f177220eb regex prettify bbabf9d67 syntax aware previous token (#705) c938b83e2 Update README.md (#702) 22b9f0f8e consider regex when matching '/' (#703) git-subtree-dir: vim/bundle/javascript git-subtree-split: d2ccd306f2c11f061c5284ff5d315c7cf257e32a
8 years ago
return b_l + is_op
endfunction
let &cpo = s:cpo_save
unlet s:cpo_save