Repository navigation
Conversation
Register the xpp alias and source.xpp grammar for explicitly labelled Markdown code fences, without file extensions, filenames, or interpreters. Add regression coverage for alias resolution, file associations, and Markdown/XML file detection. Import the MIT-licensed grammar from fraga/xpp-syntax.
5231d71 to
e18a4dc
Compare
All three of these "highlighting-only" languages share one quality that justifies their exceptional inclusion: they're interactive transcripts of other (supported) programming languages (Python, Julia, Elvish) which is valuable for pedagogy in documentation code-blocks (e.g., a Python project might illustrate how to use its exports from a REPL). X++ doesn't have this property; it's unsupported by Linguist and doesn't appear to meet the real-world usage threshold that Linguist requires to admit new languages (I'm assuming you did read the contribution guidelines, yes? 😉) |
Description
Enable Microsoft Dynamics 365 X++ syntax highlighting for explicitly labelled
xppMarkdown code fences, using the MIT-licensedsource.xppgrammar.For example:
The language entry has an alias and grammar scope, with no extensions, filenames, or interpreters. Markdown documents retain their Markdown classification, and
AxClassXML files retain their XML classification. This proposal adds no file-detection heuristics or classifier samples.Related to #6535.
Request for maintainer review
This draft proposes a highlighting-only language registration. There is a merged precedent: #3092 added
Python consolespecifically to highlight Markdown documents and comments usingpycon, without defining extensions or filenames. That entry remains inlanguages.yml;Julia REPLandElvish Transcriptalso have grammar scopes without file associations.X++ has an official Microsoft language reference. The intended benefit is readable X++ examples in documentation, READMEs, issues, and comments. GitHub's code-block documentation identifies Linguist language entries as the source of supported fence identifiers and grammar selection.
Microsoft's public Markdown source already uses
xppfence identifiers in its classes and methods reference, select-statement reference, and Chain of Command documentation. These are concrete examples of the existing Markdown convention that this proposal would highlight on GitHub; they are documentation-use evidence rather than an extension-usage count.The usage requirements are expressed per extension or filename. This proposal adds neither. The console precedents concern dialects of existing languages, so acceptance of a standalone X++ entry under the current contribution policy still needs maintainer confirmation. This draft requests that review; the extension-usage requirement below remains unchecked.
Checklist:
I am adding a new language.
972ad90, licensed under MIT.#004D8FI am adding new or changing current functionality
Validation