| Summary: | add syntax styler support for firstLineMatch | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Grant Gayed <grant_gayed> |
| Component: | Editor | Assignee: | Grant Gayed <grant_gayed> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | jlittlej |
| Version: | 12.0 | Keywords: | triaged |
| Target Milestone: | 14.0 | ||
| Hardware: | PC | ||
| OS: | Mac OS X | ||
| See Also: | https://bugs.eclipse.org/bugs/show_bug.cgi?id=511245 | ||
| Whiteboard: | |||
|
Description
Grant Gayed
Fixed, commit: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=fca091c172b520f785bf97c643661f376c81ad60 . To use it add a firstLineMatch at the root level of a grammar, for example: grammars.push({ id: "orion.sh", contentTypes: ["application/x-sh"], firstLineMatch: "^#!/bin/sh\\b", patterns: [ {include: "#string_doubleQuote"}, {include: "#string_singleQuote"}, ...snip... |