// SYNTAX TEST "Packages/Java/Java Server Pages (JSP).sublime-syntax" // <- text.html.jsp - source.java.embedded.html // ^^^^^^^^^^^^^^^ meta.tag <%-- This is a comment --%> // ^^^^^^^^^^^^^^^^^^^^^^^^^^^ comment.block.jsp <% // ^^ punctuation.section.embedded.begin.jsp - source.java.embedded.html // ^ source.java.embedded.html if (!foo && !bar) { // ^^ keyword.control.java // ^ keyword.operator.logical.java // ^^ keyword.operator.logical.java %>
<% // ^^ punctuation.section.embedded.end.jsp - source.java.embedded.html // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.tag // ^^ punctuation.section.embedded.begin.jsp - source.java.embedded.html if (foot.shouldBe()) { // ^^ keyword.control.java boolean test = false; // ^^^^^^^ storage.type // ^^^^^ constant %> // ^^ punctuation.section.embedded.end.jsp - source.java.embedded.html // ^ text.html.jsp - source.java.embedded.html <%-- This is a comment --%> // ^^^^^^^^^^^^^^^^^^^^^^^^^^^ comment.block.jsp <% int aNumber = 0; // this scriptlet should close %> // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ comment.line.double-slash.java // ^^ punctuation.section.embedded.end.jsp
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.tag <% // ^^ punctuation.section.embedded.begin.jsp - source.java.embedded.html } // ^ - invalid.illegal.stray-bracket } // ^ - invalid.illegal.stray-bracket %> // ^^ punctuation.section.embedded.end.jsp - source.java.embedded.html // ^ text.html.jsp - source.java.embedded.html