Skip to content

Commit

Permalink
[Java] Fix handling of JSP directives
Browse files Browse the repository at this point in the history
  • Loading branch information
wbond committed Feb 12, 2018
1 parent f2d9706 commit 1c1aa09
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Java/Java Server Pages (JSP).sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ contexts:
pop: true
- match: \\.
scope: constant.character.escape.jsp
- match: '(?=\S)'
pop: true
- match: "(<%[!=]?)|(<jsp:scriptlet>|<jsp:expression>|<jsp:declaration>)"
captures:
1: punctuation.section.embedded.begin.jsp
Expand Down
8 changes: 8 additions & 0 deletions Java/syntax_test_jsp.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@
// ^^^^^^^^^^^^^^^ meta.tag
</head>
<body>
<%@ include file="foo.bar" %>
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.directive
// ^^^ punctuation.section.directive
// ^^ punctuation.section.directive

Plain text
// ^^^^^^^^^^ text.html.jsp - meta

<%-- This is a comment --%>
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ comment.block.jsp
<%
Expand Down

0 comments on commit 1c1aa09

Please sign in to comment.