Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pangloss/vim-javascript
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: Gabrielito666/vim-javascript
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 7 commits
  • 2 files changed
  • 1 contributor

Commits on Jul 13, 2026

  1. fix(jsdocs): The jsDocParam group matched an expression containing op…

    …ening and closing curly brackets.
    
    I am making this change because the current regular expression may confuse a jsDocParam with a jsDocType. Whilst looking into the history of regular expressions, I came to the conclusion that this was simply a relaxation of the rules governing regular expressions to allow for use cases that do not exist.
    Gabrielito666 committed Jul 13, 2026
    Configuration menu
    Copy the full SHA
    bd6a59d View commit details
    Browse the repository at this point in the history
  2. fix(jsdocs): the @template tag now colours correctly whether or not i…

    …t contains a typo:
    
    @template {myType} T
    or
    @template T
    
    Previously, only the second option worked; in the case of @template {myType} T, “{myType}” was coloured as a jsDocParam and “T” remained as a comment
    Gabrielito666 committed Jul 13, 2026
    Configuration menu
    Copy the full SHA
    8eaeeb5 View commit details
    Browse the repository at this point in the history
  3. feat(jsdocs): Syntax highlighting support has been added to the @import

    … tag in jsdocs
    
    It's a lesser-known tag with syntax very similar to `import {Types} from "./path"` in the js module.
    We simply reuse the nextgroup from a “@import” syntax match
    
    This way, we also support a syntax like @import * as Types from “./path”
    Gabrielito666 committed Jul 13, 2026
    Configuration menu
    Copy the full SHA
    8040b5a View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2026

  1. feat(jsdocs): Add support for multiline @import { } from ""

    Add support for multiline JSDoc imports using the `@import` syntax.
    
    Example:
    
    /**
     * @import {
     *   Type1,
     *   Type2,
     *   Type3
     * } from "my/module.js"
     */
    
    Introduce a `jsDocStar` syntax type to represent the `*` prefix at the
    beginning of JSDoc lines. Reuse it in the `jsModule` group to keep syntax
    definitions consistent and improve highlighting.
    
    Tested with multiple JSDoc cases.
    
    Known edge case: invalid patterns like `import\n *\n *` may highlight the
    second `*` as a comment. This is not valid/common JavaScript syntax and does
    not affect normal usage.
    Gabrielito666 committed Jul 15, 2026
    Configuration menu
    Copy the full SHA
    b1f02c3 View commit details
    Browse the repository at this point in the history
  2. feat(jsdocs): Add support for multiline jsDocType's

    example:
    
    /**
     * @typedef {{
     *	my: string;
     *	superType: boolean;
     * }}
     */
    To do this, create a jsDocStar group that uses the comment color for the * characters and preserves the region's color.
    
    I also fixed an issue with jsDocTypeNoParam that didn't support nesting with `extend`.
    Gabrielito666 committed Jul 15, 2026
    Configuration menu
    Copy the full SHA
    b68f2b9 View commit details
    Browse the repository at this point in the history
  3. Merge branch 'feat/jsDocsImportTagSupport' into merge/jsDocParam_bug-…

    …-jsDocsType_multiline--jsDocsImportTagSupport
    Gabrielito666 committed Jul 15, 2026
    Configuration menu
    Copy the full SHA
    286bf18 View commit details
    Browse the repository at this point in the history
  4. Merge branch 'feat/jsDocsType_multiline' into merge/jsDocParam_bug--j…

    …sDocsType_multiline--jsDocsImportTagSupport
    Gabrielito666 committed Jul 15, 2026
    Configuration menu
    Copy the full SHA
    8906cf2 View commit details
    Browse the repository at this point in the history
Loading