megaboich / js-map-parser Goto Github PK
View Code? Open in Web Editor NEWExtension for Visual Studio to improve JS support
Extension for Visual Studio to improve JS support
Hello,
This is not an issue but more of a request or question. I have many unnamed functions which use "apply"...
this.Name = this.Name || { } ;
( function ()
{
...
}
).apply ( this.Name || { } );**
Does it make sense and would it be possible to assign "Name" to the name of the function in Javascript Map Parser instead of showing a "?". By the way, great tool.
Thanks.
For exemple:
Game.controls.add = function( ctrl = {} ){ ... }
Line N: Unexpected token =
Then it does not structure my statements.
Can you please look into enabling this plug-in for VS2017?
for example:
var varkey = "mykey";
var myobj = {[varkey]:"myvalue"}
this is parsed as an error (unexpected token "["), but is valid javascript
latest version does not show error message when there is comma at the end of json object.
e.g.
{ a: 'abc', b: 'xyz', }
above syntax shows error in previous version but not in current version.
Hello!
The plugin swears on a binary number (for example: 0b01010111).
Error: Unexpected token ILLEGAL.
Thanks!
Hello, I just updated, and the left map does not show all the functions in 2015 and community version
Suggestions:
Hi,
It is unable to handle code like the code shown below. You get what occurs in the image displayed below
var AceEditorModes = [{ name: "ABAP", id: "abap" }, { name: "ABC", id: "abc" }, { name: "ActionScript", id: "actionscript" }, { name: "ADA", id: "ada" }, { name: "Apache Conf", id: "apache_conf" }, { name: "AsciiDoc", id: "asciidoc" }, { name: "Assembly x86", id: "assembly_x86" }, { name: "AutoHotKey", id: "autohotkey" }, { name: "BatchFile", id: "batchfile" }, { name: "C and C++", id: "c_cpp" }, { name: "C9Search", id: "c9search" }, { name: "Cirru", id: "cirru" }, { name: "Clojure", id: "clojure" }, { name: "Cobol", id: "cobol" }, { name: "CoffeeScript", id: "coffee" }, { name: "ColdFusion", id: "coldfusion" }, { name: "C#", id: "csharp" }, { name: "CSS", id: "css" }, { name: "Curly", id: "curly" }, { name: "D", id: "d" }, { name: "Dart", id: "dart" }, { name: "Diff", id: "diff" }, { name: "Django", id: "django" }, { name: "Dockerfile", id: "dockerfile" }, { name: "Dot", id: "dot" }, { name: "Dummy", id: "dummy" }, { name: "DummySyntax", id: "dummysyntax" }, { name: "Eiffel", id: "eiffel" }, { name: "EJS", id: "ejs" }, { name: "Elixir", id: "elixir" }, { name: "Elm", id: "elm" }, { name: "Erlang", id: "erlang" }, { name: "Forth", id: "forth" }, { name: "FreeMarker", id: "ftl" }, { name: "Gcode", id: "gcode" }, { name: "Gherkin", id: "gherkin" }, { name: "Gitignore", id: "gitignore" }, { name: "Glsl", id: "glsl" }, { name: "Gobstones", id: "gobstones" }, { name: "Go", id: "golang" }, { name: "Groovy", id: "groovy" }, { name: "HAML", id: "haml" }, { name: "Handlebars", id: "handlebars" }, { name: "Haskell", id: "haskell" }, { name: "haXe", id: "haxe" }, { name: "HTML", id: "html" }, { name: "HTML (Elixir)", id: "html_elixir" }, { name: "HTML (Ruby)", id: "html_ruby" }, { name: "INI", id: "ini" }, { name: "Io", id: "io" }, { name: "Jack", id: "jack" }, { name: "Jade", id: "jade" }, { name: "Java", id: "java" }, { name: "JavaScript", id: "javascript" }, { name: "JSON", id: "json" }, { name: "JSONiq", id: "jsoniq" }, { name: "JSP", id: "jsp" }, { name: "JSX", id: "jsx" }, { name: "Julia", id: "julia" }, { name: "LaTeX", id: "latex" }, { name: "Lean", id: "lean" }, { name: "LESS", id: "less" }, { name: "Liquid", id: "liquid" }, { name: "Lisp", id: "lisp" }, { name: "LiveScript", id: "livescript" }, { name: "LogiQL", id: "logiql" }, { name: "LSL", id: "lsl" }, { name: "Lua", id: "lua" }, { name: "LuaPage", id: "luapage" }, { name: "Lucene", id: "lucene" }, { name: "Makefile", id: "makefile" }, { name: "Markdown", id: "markdown" }, { name: "Mask", id: "mask" }, { name: "MATLAB", id: "matlab" }, { name: "Maze", id: "maze" }, { name: "MEL", id: "mel" }, { name: "MUSHCode", id: "mushcode" }, { name: "MySQL", id: "mysql" }, { name: "Nix", id: "nix" }, { name: "NSIS", id: "nsis" }, { name: "Objective-C", id: "objectivec" }, { name: "OCaml", id: "ocaml" }, { name: "Pascal", id: "pascal" }, { name: "Perl", id: "perl" }, { name: "pgSQL", id: "pgsql" }, { name: "PHP", id: "php" }, { name: "Powershell", id: "powershell" }, { name: "Praat", id: "praat" }, { name: "Prolog", id: "prolog" }, { name: "Properties", id: "properties" }, { name: "Protobuf", id: "protobuf" }, { name: "Python", id: "python" }, { name: "R", id: "r" }, { name: "Razor", id: "razor" }, { name: "RDoc", id: "rdoc" }, { name: "RHTML", id: "rhtml" }, { name: "RST", id: "rst" }, { name: "Ruby", id: "ruby" }, { name: "Rust", id: "rust" }, { name: "SASS", id: "sass" }, { name: "SCAD", id: "scad" }, { name: "Scala", id: "scala" }, { name: "Scheme", id: "scheme" }, { name: "SCSS", id: "scss" }, { name: "SH", id: "sh" }, { name: "SJS", id: "sjs" }, { name: "Smarty", id: "smarty" }, { name: "snippets", id: "snippets" }, { name: "Soy Template", id: "soy_template" }, { name: "Space", id: "space" }, { name: "SQL", id: "sql" }, { name: "SQLServer", id: "sqlserver" }, { name: "Stylus", id: "stylus" }, { name: "SVG", id: "svg" }, { name: "Swift", id: "swift" }, { name: "Tcl", id: "tcl" }, { name: "Tex", id: "tex" }, { name: "Text", id: "text" }, { name: "Textile", id: "textile" }, { name: "Toml", id: "toml" }, { name: "Twig", id: "twig" }, { name: "Typescript", id: "typescript" }, { name: "Vala", id: "vala" }, { name: "VBScript", id: "vbscript" }, { name: "Velocity", id: "velocity" }, { name: "Verilog", id: "verilog" }, { name: "VHDL", id: "vhdl" }, { name: "Wollok", id: "wollok" }, { name: "XML", id: "xml" }, { name: "XQuery", id: "xquery" }, { name: "YAML", id: "yaml" }];
Thanks for the great extension
i get an error in vs 2015 with the map parser with "=>" in my code in ecma6 javascript
Hello,
JS Map Parser reports an error on a Promise related syntax.
For example, this code (coming from a TinyMCE example) raises the error "Unexpected token >" on the first line.
const upload_img = (blobInfo, progress) => new Promise((resolve, reject) => {
/* code here */
});
In case the development of this nice Notepad++ plugin would be active again in the future...
I guess colour theme of the JS Map Parser should be the same as the visual studio one, at least at first, when you install the extension. Feel free to ignore this issue if you don't think so.
After installing through VS2015 > Tools > Extensions and Updates > Search (click and download and install from the web), I've been able to see and use the TreeView pane to navigate around .js and .html files with script tags.
BUT... I have several pages that use a custom script map that are seen by the VS editor as HTML pages, more precisely as Web Editor Forms. All the syntax is color highlighted correctly including the JavaScript code contained within the <script> tags. The file extension were added via Tools > Options > Text Editor > File Extensions > (myFileType for example htmx) > Add.
For some unknown reason this plug-in does not see any of the functions in my files that have non standard filetypes?
Have installed this on NotePad++. Excellent, very good work and much better than the built in View / Function List command. However I have three issues:
Thanks
var array = [0,1,2];
Math.min(...array);
Math.max(...array);
Error: "Unexpected token ."
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/min
Unable to remove this plugin in Notepad++ version 7.7.1
Also shows error when using =>
Hi, I was using js-map-parser with my sharepoint solution and when I edit a Sharepoint workflow file (xaml) in a string field it crashes my VS 2015. Can you fix it plz ?
For MVC cshtml files the following is valid code:
@:<script>
@:$(function () {
@:var myvar = "x";
etc...
@:});
@:</script>
Unfortunately to the parser this is an error as it does not recognize the in-line syntax @:. The only workaround for me is to disable parsing in cshtml files. I have not checked whether <text></text>
inline syntax works, but it might. Changing thousands of lines of code to this is not an option anyway.
Hmm looks like disabling cshtml is not an option either. Even when deleted from both config items, it still parses them and shows an error at the top of the file, effectively ignoring the list. (VS restarted)
Hi,
I'm getting an 'Unknown exception' from Notepad++ (7.2.2) when opening the app, after dropping the JsMapParser.NppPlugin.dll (4.1) into the C:\Program Files (x86)\Notepad++\plugins
folder. After the expection message the app starts ok although opening the Plugin manager window crashes the app. Removing the dll from the plugins folder resolves the problem.
Best regards
John
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.