Open
Bug 1037365
Opened 11 years ago
Updated 3 years ago
Railroad diagrams for regular expressions
Categories
(DevTools :: Debugger, enhancement, P5)
DevTools
Debugger
Tracking
(Not tracked)
NEW
People
(Reporter: past, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
21.41 KB,
application/zip
|
Details |
The debugger bubble popup allows the inspection of the runtime value of the hovered variable or property. It would be nice to expand it to allow inspection of regular expressions via railroad diagrams (like the ones in json.org).
Such an inspection popup would also make a lot of sense in the editor, since it doesn't depend on runtime information, so that WebIDE and Scratchpad can benefit from it as well. Brackets and Atom have open-source plugins that already provide that capability:
Railroad diagrams (CC0-licensed): https://github.com/tabatkins/railroad-diagrams
Atom extension in CoffeeScript (MIT-licensed, uses the above): https://github.com/klorenz/atom-regex-railroad-diagrams
Brackets extension in JS (MIT-licensed, uses the above two): https://github.com/warpdesign/brackets-regex-diagram
Updated•11 years ago
|
Summary: Add a railroad diagram view for regexps → Railroad diagrams for regular expressions
Updated•11 years ago
|
Depends on: dbg-inspect
Updated•11 years ago
|
Blocks: dbg-inspect
No longer depends on: dbg-inspect
Comment 1•11 years ago
|
||
I've done an initial attempt at this by grabbing the files we need from the library with the brackets extension, but the results looks less than appealing (i.e. completely broken). It's like were missing some css files or something, but there are none in that library that I haven't already included. Could it be that this plugin depends on some CSS defined by atom?
I've attached a zip file with my initial attempt in case anybody wants to play with it. I might give it another shot myself later, but in the meantime other people are welcome to pick this up.
Updated•11 years ago
|
Mentor: ejpbruel
Updated•9 years ago
|
Attachment #8549561 -
Attachment is patch: false
Attachment #8549561 -
Attachment mime type: text/plain → application/zip
Updated•9 years ago
|
Mentor: ejpbruel
Updated•7 years ago
|
Product: Firefox → DevTools
Updated•6 years ago
|
Type: defect → enhancement
Priority: P3 → P5
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•