Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 430893

Summary: provide a way of supplying the literal string of a match to the text styler
Product: [ECD] Orion Reporter: Grant Gayed <grant_gayed>
Component: ClientAssignee: Grant Gayed <grant_gayed>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: Silenio_Quarti
Version: 5.0   
Target Milestone: 6.0 M1   
Hardware: PC   
OS: All   
Whiteboard:

Description Grant Gayed CLA 2014-03-21 12:27:16 EDT
This is an editor request, to enable a grammar with (for example) a single-line comment with match "//.*" to provide its literal string "//".
Comment 1 Grant Gayed CLA 2014-03-21 12:34:24 EDT
Fixed > 20140321, commit: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=faf67c9312ef0ab2fee6a5ad9d6b84c240622665 .  Also updated several of Orion's syntax.js files to provide literal strings for comment matches.

Examples:
match: {match: "//.*", literal: "//"}
begin: {match: "/\\*\\*", literal: "/**"}
end: {match: "\\*/", literal: "*/"}

Also added TextStylerAccessor.getPatterns(offset) to get all patterns that are applicable at a given offset.