-
Notifications
You must be signed in to change notification settings - Fork 89
Technical information
Angelo edited this page Dec 18, 2013
·
8 revisions
#Technical information
Here some technical information about AngularJS Eclipse :
- the HTML JFlex parser was modified (like JSP have done) to manage expression tokens {{}}. See AngularTokenizer.jflex. It allows to higlight {{}} expression (even in an attribute value).
- a new content type "org.eclipse.angularjs.core.angularsource" was created and linked to this AngularTokenizer.jflex. This content type is applied to html file only if project has "org.eclipse.angularjs.core.AngularNature" nature.
- the AngularJS HTML editor extends the WTP HTML Editor with WTP extensions point "org.eclipse.wst.sse.ui.editorConfiguration" for completion, hover, etc
AngularTokenizer is a good idea to highlight {{}} epression and manage completion, etc, but JSP editor doesn't benefit with Angular feature (see issue 2). We need to rewrit ethe JSP lexer to add {{}} expression token.
- to manage completion in HTML editor, tern which is is a stand-alone code-analysis engine for JavaScrip, is used. As it is written in Javacsript, AngularJS Eclipse uses tern.java.
- tern.java gives you the capability to execute tern in Java context. It provides several implementation : ** with Rhino ** with node.js