bracket-lens-vscode icon indicating copy to clipboard operation
bracket-lens-vscode copied to clipboard

Js regex error not working correctly

Open suyash222 opened this issue 1 year ago • 1 comments

not working

with regex

image

without regex

image

please fix this issue

image

suyash222 avatar Nov 27 '24 07:11 suyash222

This extension is not a result of a proper understanding of a language, and is realized through fairly sloppy processing, so please consider this to be a specification. At least this issue will not be fixed as a bug.

However, this does not mean that there is no workaround for the problem. If you don't use multiline strings, disable it with a setting like this:

    "[javascript]": {
        "bracketLens.languageConfiguration": {
            "ignoreCase": false,
            "comments": {
                "block": [
                    {
                        "opening": "/*",
                        "closing": "*/"
                    }
                ],
                "line": [
                    "//"
                ]
            },
            "brackets": {
                "symbol": [
                    {
                        "opening": "(",
                        "closing": ")",
                        "headerMode": "smart",
                        "inters": []
                    },
                    {
                        "opening": "[",
                        "closing": "]",
                        "headerMode": "smart",
                        "inters": []
                    },
                    {
                        "opening": "{",
                        "closing": "}",
                        "headerMode": "smart",
                        "inters": []
                    }
                ],
                "word": []
            },
            "strings": {
                "inline": [
                    {
                        "opening": "\"",
                        "closing": "\"",
                        "escape": [
                            "\\\\",
                            "\\\""
                        ]
                    },
                    {
                        "opening": "'",
                        "closing": "'",
                        "escape": [
                            "\\\\",
                            "\\'"
                        ]
                    }
                ]
            },
            "terminators": [
                ";",
                ","
            ],
            "ignoreSymbols": [
                "\\//"
            ]
        }
    },

( delete strings/multiline from default )

wraith13 avatar Nov 27 '24 10:11 wraith13