/usr/share/gtksourceview-3.0/language-specs/amc-txt.lang is in auto-multiple-choice-common 1.2.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | <?xml version="1.0" encoding="UTF-8"?>
<language id="amc-txt" _name="AMC-TXT" version="2.0" _section="Sources">
<metadata>
<property name="mimetypes">text/x-amc-txt</property>
</metadata>
<styles>
<style id="comment" _name="Comment" map-to="def:comment"/>
<style id="keyword" _name="Keyword" map-to="def:keyword"/>
<style id="opener" _name="Open symbol" map-to="def:bold"/>
<style id="letter" _name="Letter" map-to="def:string"/>
<style id="questiontext" _name="Question" map-to="diff:location"/>
<style id="correct" _name="Correct choice" map-to="diff:added-line"/>
<style id="wrong" _name="Wrong choice" map-to="diff:removed-line"/>
<style id="ooptions" _name="Open question options" map-to="def:string"/>
<style id="qoptions" _name="Question options" map-to="def:string"/>
<style id="scoring" _name="Scoring" map-to="def:preprocessor"/>
</styles>
<definitions>
<context id="amc-txt">
<include>
<define-regex id="endgroup">(?=^\s*([a-zA-Z]+:|\+|-|\*|#))</define-regex>
<context id="comment" style-ref="comment">
<start>#</start>
<end>$</end>
<include>
<context id="filterid" first-line-only="true" style-ref="keyword">
<keyword>AMC-TXT</keyword>
</context>
</include>
</context>
<context id="options" end-parent="true" style-ref="keyword">
<prefix>^</prefix>
<suffix>:</suffix>
<keyword>PaperSize</keyword>
<keyword>BoxColor</keyword>
<keyword>Title</keyword>
<keyword>Presentation</keyword>
<keyword>Group</keyword>
<keyword>Code</keyword>
<keyword>Lang</keyword>
<keyword>Font</keyword>
<keyword>AnswerSheetTitle</keyword>
<keyword>AnswerSheetPresentation</keyword>
<keyword>AnswerSheetColumns</keyword>
<keyword>SeparateAnswerSheet</keyword>
<keyword>CompleteMulti</keyword>
<keyword>DefaultScoringM</keyword>
<keyword>DefaultScoringS</keyword>
<keyword>L-Question</keyword>
<keyword>L-None</keyword>
<keyword>L-Name</keyword>
<keyword>L-OpenReserved</keyword>
<keyword>L-OpenText</keyword>
<keyword>L-Student</keyword>
<keyword>LaTeX</keyword>
<keyword>LaTeX-Preambule</keyword>
<keyword>LaTeX-BeginDocument</keyword>
<keyword>ShuffleQuestions</keyword>
<keyword>Columns</keyword>
<keyword>QuestionBlocks</keyword>
<keyword>Arabic</keyword>
<keyword>ArabicFont</keyword>
<keyword>Disable</keyword>
<keyword>SingleSided</keyword>
<keyword>ManualDuplex</keyword>
</context>
<context id="questions" end-parent="true" style-ref="questiontext">
<start>^(\*{1,2})(?:<([^>]+)>)?(?:\[([^\]]+)\])?(?:\{([^\}]+)\})?</start>
<end>\%{endgroup}</end>
<include>
<context style-ref="opener" where="start" sub-pattern="1"/>
<context style-ref="ooptions" where="start" sub-pattern="2"/>
<context style-ref="qoptions" where="start" sub-pattern="3"/>
<context style-ref="scoring" where="start" sub-pattern="4"/>
</include>
</context>
<context id="correctanswer" end-parent="true" style-ref="correct">
<start>^(\+)(?:\[([^\]]+)\])?(?:\{([^\}]+)\})?</start>
<end>\%{endgroup}</end>
<include>
<context style-ref="opener" where="start" sub-pattern="1"/>
<context style-ref="letter" where="start" sub-pattern="2"/>
<context style-ref="scoring" where="start" sub-pattern="3"/>
</include>
</context>
<context id="wronganswer" end-parent="true" style-ref="wrong">
<start>^(-)(?:\[([^\]]+)\])?(?:\{([^\}]+)\})?</start>
<end>\%{endgroup}</end>
<include>
<context style-ref="opener" where="start" sub-pattern="1"/>
<context style-ref="letter" where="start" sub-pattern="2"/>
<context style-ref="scoring" where="start" sub-pattern="3"/>
</include>
</context>
</include>
</context>
</definitions>
</language>
|