GithubHelp home page GithubHelp logo

Comments (2)

megaboich avatar megaboich commented on August 22, 2024

Hi WrayKS1,

Thanks for the report.
Indeed you have found interesting issue. In general I would not recommend to put any significant amounts of JavaScript to cshtml files. Better to move them to .js files.

Currently plugin has a little weak logic to process Razor syntax, and it is of course can not provide all syntax support.
So, for you it is better to disable processing of cshtml files in the settings.
BUT, currently if you remove "cshtml" from list of matched extensions it would not help because of a bug. You should also remove "html" from that list. Yes, it currently just check if your full file name ends with some of extensions in the list, and "html" is there. That is why it tries to parse it.

I'll fix that in next release.

from js-map-parser.

megaboich avatar megaboich commented on August 22, 2024

Fixed in 4.0.2 release.
Available here: https://github.com/megaboich/jsparser/releases/tag/4.0.2

from js-map-parser.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.