{"name":"al","scopeName":"source.al","patterns":[{"name":"keyword.control.al","match":"\\b(?i:(ARRAY|ASSERTERROR|BEGIN|BREAK|CASE|DO|DOWNTO|ELSE|END|EVENT|EXIT|FOR|FOREACH|FUNCTION|IF|IMPLEMENTS|IN|INDATASET|INTERFACE|INTERNAL|LOCAL|OF|PROCEDURE|PROGRAM|PROTECTED|REPEAT|RUNONCLIENT|SECURITYFILTERING|SUPPRESSDISPOSE|TEMPORARY|THEN|TO|TRIGGER|UNTIL|VAR|WHILE|WITH|WITHEVENTS))\\b"},{"name":"keyword.operators.al","match":"\\b(?i:(AND|DIV|MOD|NOT|OR|XOR))\\b"},{"name":"keyword.other.property.al","match":"\\b(?i:(AVERAGE|CONST|COUNT|EXIST|FIELD|FILTER|LOOKUP|MAX|MIN|ORDER|SORTING|SUM|TABLEDATA|UPPERLIMIT|WHERE|ASCENDING|DESCENDING))\\b"},{"name":"keyword.other.applicationobject.al","match":"\\b(?i:(CODEUNIT|PAGE|PAGEEXTENSION|PAGECUSTOMIZATION|DOTNET|ENUM|ENUMEXTENSION|VALUE|QUERY|REPORT|TABLE|TABLEEXTENSION|XMLPORT|PROFILE|CONTROLADDIN|REPORTEXTENSION|INTERFACE|PERMISSIONSET|PERMISSIONSETEXTENSION|ENTITLEMENT))\\b"},{"name":"keyword.other.builtintypes.al","match":"\\b(?i:(Action|Array|Automation|BigInteger|BigText|Blob|Boolean|Byte|Char|ClientType|Code|Codeunit|CompletionTriggerErrorLevel|ConnectionType|Database|DataClassification|DataScope|Date|DateFormula|DateTime|Decimal|DefaultLayout|Dialog|Dictionary|DotNet|DotNetAssembly|DotNetTypeDeclaration|Duration|Enum|ErrorInfo|ErrorType|ExecutionContext|ExecutionMode|FieldClass|FieldRef|FieldType|File|FilterPageBuilder|Guid|InStream|Integer|Joker|KeyRef|List|ModuleDependencyInfo|ModuleInfo|None|Notification|NotificationScope|ObjectType|Option|OutStream|Page|PageResult|Query|Record|RecordId|RecordRef|Report|ReportFormat|SecurityFilter|SecurityFiltering|Table|TableConnectionType|TableFilter|TestAction|TestField|TestFilterField|TestPage|TestPermissions|TestRequestPage|Text|TextBuilder|TextConst|TextEncoding|Time|TransactionModel|TransactionType|Variant|Verbosity|Version|XmlPort|HttpContent|HttpHeaders|HttpClient|HttpRequestMessage|HttpResponseMessage|JsonToken|JsonValue|JsonArray|JsonObject|View|Views|XmlAttribute|XmlAttributeCollection|XmlComment|XmlCData|XmlDeclaration|XmlDocument|XmlDocumentType|XmlElement|XmlNamespaceManager|XmlNameTable|XmlNode|XmlNodeList|XmlProcessingInstruction|XmlReadOptions|XmlText|XmlWriteOptions|WebServiceActionContext|WebServiceActionResultCode|SessionSettings))\\b"},{"name":"keyword.operators.comparison.al","match":"\\b([\u003c\u003e]=|\u003c\u003e|\u003c|\u003e)\\b"},{"name":"keyword.operators.math.al","match":"\\b(\\-|\\+|\\/|\\*)\\b"},{"name":"keyword.operators.assigment.al","match":"\\s*(\\:=|\\+=|-=|\\/=|\\*=)\\s*"},{"name":"keyword.other.metadata.al","match":"\\b(?i:(ADD|ADDFIRST|ADDLAST|ADDAFTER|ADDBEFORE|ACTION|ACTIONS|AREA|ASSEMBLY|CHARTPART|CUEGROUP|CUSTOMIZES|COLUMN|DATAITEM|DATASET|ELEMENTS|EXTENDS|FIELD|FIELDGROUP|FIELDATTRIBUTE|FIELDELEMENT|FIELDGROUPS|FIELDS|FILTER|FIXED|GRID|GROUP|MOVEAFTER|MOVEBEFORE|KEY|KEYS|LABEL|LABELS|LAYOUT|MODIFY|MOVEFIRST|MOVELAST|MOVEBEFORE|MOVEAFTER|PART|REPEATER|USERCONTROL|REQUESTPAGE|SCHEMA|SEPARATOR|SYSTEMPART|TABLEELEMENT|TEXTATTRIBUTE|TEXTELEMENT|TYPE))\\b"},{"name":"keyword.operators.property.al","match":"\\s*[(\\.\\.)\u0026\\|]\\s*"},{"name":"meta.applicationobject.al","match":"\\b(?i:(CODEUNIT|PAGE|QUERY|REPORT|TABLE|XMLPORT))\\b","captures":{"1":{"name":"entity.name.applicationobject.al"}}},{"name":"meta.function.al","match":"\\b(?i:(trigger|procedure))\\b\\s+(\\w+(\\.\\w+)?)(\\(.*?\\))?;\\s*","captures":{"1":{"name":"entity.name.function.al"}}},{"name":"constant.numeric.al","match":"\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?\\b"},{"begin":"(^[ \\t]+)?(?=//)","end":"(?!\\G)","patterns":[{"name":"comment.line.double-slash.al.two","begin":"//","end":"\\n","beginCaptures":{"0":{"name":"punctuation.definition.comment.al"}}}],"beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.al"}}},{"begin":"(^[ \\t]+)?(?=#)","end":"(?!\\G)","patterns":[{"name":"comment.line.number-sign.al.two","begin":"#","end":"\\n","beginCaptures":{"0":{"name":"punctuation.definition.directive.al"}}}],"beginCaptures":{"1":{"name":"punctuation.whitespace.directive.leading.al"}}},{"name":"comment.block.al.one","begin":"/\\*","end":"\\*/\\n?","captures":{"0":{"name":"punctuation.definition.comment.al"}}},{"name":"string.quoted.single.al","begin":"'","end":"'","patterns":[{"name":"constant.character.escape.apostrophe.al","match":"''"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.al"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.al"}},"applyEndPatternLast":true},{"name":"punctuation.al","match":"[;:,]"},{"begin":"\"","end":"\"","applyEndPatternLast":true}]}
