chroma/lexers/testdata/al.expected
2025-03-22 20:46:00 +13:00

342 lines
14 KiB
Text

[
{"type":"CommentSingle","value":"/// \u003csummary\u003e\n/// Manage Loyalty Benefits\n/// \u003c/summary\u003e\n"},
{"type":"Keyword","value":"codeunit"},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralNumber","value":"50100"},
{"type":"TextWhitespace","value":" "},
{"type":"Text","value":"\"Loyalty Benefits Management\""},
{"type":"TextWhitespace","value":"\n"},
{"type":"Text","value":"{"},
{"type":"TextWhitespace","value":"\n "},
{"type":"Keyword","value":"var"},
{"type":"TextWhitespace","value":"\n "},
{"type":"Text","value":"Vendor"},
{"type":"Punctuation","value":":"},
{"type":"TextWhitespace","value":" "},
{"type":"Keyword","value":"record"},
{"type":"TextWhitespace","value":" "},
{"type":"Text","value":"Vendor"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n\n "},
{"type":"Keyword","value":"trigger"},
{"type":"TextWhitespace","value":" "},
{"type":"Text","value":"OnRun"},
{"type":"Operator","value":"()\n "},
{"type":"Keyword","value":"begin"},
{"type":"TextWhitespace","value":"\n "},
{"type":"Keyword","value":"end"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n\n "},
{"type":"CommentSingle","value":"/// \u003csummary\u003e\n"},
{"type":"TextWhitespace","value":" "},
{"type":"CommentSingle","value":"/// Adjust a Sales Order with loyalty level\n"},
{"type":"TextWhitespace","value":" "},
{"type":"CommentSingle","value":"/// \u003c/summary\u003e\n"},
{"type":"TextWhitespace","value":" "},
{"type":"CommentSingle","value":"/// \u003cparam name=\"SalesHeader\"\u003eSales Header to adjust based on Customer Loyalty\u003c/param\u003e\n"},
{"type":"TextWhitespace","value":" "},
{"type":"Keyword","value":"procedure"},
{"type":"TextWhitespace","value":" "},
{"type":"Text","value":"AdjustForLoyalty"},
{"type":"Operator","value":"("},
{"type":"Keyword","value":"var"},
{"type":"TextWhitespace","value":" "},
{"type":"Text","value":"SalesHeader"},
{"type":"Punctuation","value":":"},
{"type":"TextWhitespace","value":" "},
{"type":"Keyword","value":"record"},
{"type":"TextWhitespace","value":" "},
{"type":"Text","value":"\"Sales Header\""},
{"type":"Operator","value":")"},
{"type":"Punctuation","value":":"},
{"type":"TextWhitespace","value":" "},
{"type":"Keyword","value":"Integer"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n "},
{"type":"Keyword","value":"var"},
{"type":"TextWhitespace","value":"\n "},
{"type":"Text","value":"Customer"},
{"type":"Punctuation","value":":"},
{"type":"TextWhitespace","value":" "},
{"type":"Keyword","value":"record"},
{"type":"TextWhitespace","value":" "},
{"type":"Text","value":"Customer"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n "},
{"type":"Text","value":"LoyaltyBenefits"},
{"type":"Punctuation","value":":"},
{"type":"TextWhitespace","value":" "},
{"type":"Keyword","value":"interface"},
{"type":"TextWhitespace","value":" "},
{"type":"Text","value":"ILoyaltyBenefits"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n "},
{"type":"Text","value":"Discount"},
{"type":"Punctuation","value":":"},
{"type":"TextWhitespace","value":" "},
{"type":"Keyword","value":"Decimal"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n "},
{"type":"Keyword","value":"begin"},
{"type":"TextWhitespace","value":"\n "},
{"type":"Text","value":"Customer"},
{"type":"Operator","value":"."},
{"type":"Text","value":"Get"},
{"type":"Operator","value":"("},
{"type":"Text","value":"SalesHeader"},
{"type":"Operator","value":"."},
{"type":"Text","value":"\"Sell-to Customer No.\""},
{"type":"Operator","value":")"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n\n "},
{"type":"Text","value":"LoyaltyBenefits"},
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":":="},
{"type":"TextWhitespace","value":" "},
{"type":"Text","value":"Customer"},
{"type":"Operator","value":"."},
{"type":"Text","value":"Loyalty"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n "},
{"type":"Text","value":"Discount"},
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":":="},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralNumber","value":"1"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n "},
{"type":"Text","value":"Discount"},
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":":="},
{"type":"TextWhitespace","value":" "},
{"type":"Text","value":"LoyaltyBenefits"},
{"type":"Operator","value":"."},
{"type":"Text","value":"GetDiscount"},
{"type":"Operator","value":"()"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n "},
{"type":"Text","value":"ApplyDiscount"},
{"type":"Operator","value":"("},
{"type":"Text","value":"SalesHeader"},
{"type":"Punctuation","value":","},
{"type":"TextWhitespace","value":" "},
{"type":"Text","value":"Discount"},
{"type":"Operator","value":")"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n "},
{"type":"Keyword","value":"end"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n\n "},
{"type":"CommentSingle","value":"/// \u003csummary\u003e\n"},
{"type":"TextWhitespace","value":" "},
{"type":"CommentSingle","value":"/// Applies the Discount to the Sales Order\n"},
{"type":"TextWhitespace","value":" "},
{"type":"CommentSingle","value":"/// \u003c/summary\u003e\n"},
{"type":"TextWhitespace","value":" "},
{"type":"CommentSingle","value":"/// \u003cparam name=\"SalesHeader\"\u003eSales Order\u003c/param\u003e\n"},
{"type":"TextWhitespace","value":" "},
{"type":"CommentSingle","value":"/// \u003cparam name=\"Discount\"\u003eDiscount to apply\u003c/param\u003e\n"},
{"type":"TextWhitespace","value":" "},
{"type":"Keyword","value":"local"},
{"type":"TextWhitespace","value":" "},
{"type":"Keyword","value":"procedure"},
{"type":"TextWhitespace","value":" "},
{"type":"Text","value":"\"Apply Discount\""},
{"type":"Operator","value":"("},
{"type":"Text","value":"SalesHeader"},
{"type":"Punctuation","value":":"},
{"type":"TextWhitespace","value":" "},
{"type":"Keyword","value":"record"},
{"type":"TextWhitespace","value":" "},
{"type":"Text","value":"\"Sales Header\""},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":" "},
{"type":"Text","value":"Discount"},
{"type":"Punctuation","value":":"},
{"type":"TextWhitespace","value":" "},
{"type":"Keyword","value":"Decimal"},
{"type":"Operator","value":")\n "},
{"type":"Keyword","value":"begin"},
{"type":"TextWhitespace","value":"\n "},
{"type":"CommentSingle","value":"// TODO: Implement\n"},
{"type":"TextWhitespace","value":" "},
{"type":"Keyword","value":"end"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Text","value":"}"},
{"type":"TextWhitespace","value":"\n\n\n"},
{"type":"Keyword","value":"enum"},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralNumber","value":"50140"},
{"type":"TextWhitespace","value":" "},
{"type":"Text","value":"SomeEnum"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Text","value":"{"},
{"type":"TextWhitespace","value":"\n "},
{"type":"Keyword","value":"value"},
{"type":"Operator","value":"("},
{"type":"LiteralNumber","value":"0"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":" "},
{"type":"Keyword","value":"None"},
{"type":"Operator","value":") "},
{"type":"Text","value":"{"},
{"type":"TextWhitespace","value":" "},
{"type":"Text","value":"}"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Text","value":"}"},
{"type":"TextWhitespace","value":"\n\n"},
{"type":"CommentPreproc","value":"#region interface stuff\n"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"interface"},
{"type":"TextWhitespace","value":" "},
{"type":"Text","value":"ISuperGreat"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Text","value":"{"},
{"type":"TextWhitespace","value":"\n "},
{"type":"Keyword","value":"procedure"},
{"type":"TextWhitespace","value":" "},
{"type":"Text","value":"YesSir"},
{"type":"Operator","value":"("},
{"type":"Text","value":"\"c in c\""},
{"type":"Punctuation","value":":"},
{"type":"TextWhitespace","value":" "},
{"type":"Keyword","value":"codeunit"},
{"type":"TextWhitespace","value":" "},
{"type":"Text","value":"FooBar"},
{"type":"Operator","value":")"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Text","value":"}"},
{"type":"TextWhitespace","value":"\n\n"},
{"type":"CommentPreproc","value":"#endregion\n"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"table"},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralNumber","value":"50100"},
{"type":"TextWhitespace","value":" "},
{"type":"Text","value":"Customer"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Text","value":"{"},
{"type":"TextWhitespace","value":"\n "},
{"type":"Text","value":"Access"},
{"type":"TextWhitespace","value":" "},
{"type":"Text","value":"="},
{"type":"TextWhitespace","value":" "},
{"type":"Keyword","value":"Internal"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n "},
{"type":"Text","value":"TableType"},
{"type":"TextWhitespace","value":" "},
{"type":"Text","value":"="},
{"type":"TextWhitespace","value":" "},
{"type":"Text","value":"Normal"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n\n "},
{"type":"Keyword","value":"fields"},
{"type":"TextWhitespace","value":"\n "},
{"type":"Text","value":"{"},
{"type":"TextWhitespace","value":"\n "},
{"type":"Keyword","value":"field"},
{"type":"Operator","value":"("},
{"type":"LiteralNumber","value":"1"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":" "},
{"type":"Text","value":"\"P K\""},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":" "},
{"type":"Keyword","value":"Integer"},
{"type":"Operator","value":")\n "},
{"type":"Text","value":"{"},
{"type":"TextWhitespace","value":"\n "},
{"type":"Text","value":"}"},
{"type":"TextWhitespace","value":"\n "},
{"type":"Text","value":"}"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Text","value":"}"},
{"type":"TextWhitespace","value":"\n\n"},
{"type":"CommentSingle","value":"/// \u003csummary\u003e\n/// Add the Loyalty fields to the Customer table.\n/// \u003c/summary\u003e\n"},
{"type":"Keyword","value":"tableextension"},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralNumber","value":"50100"},
{"type":"TextWhitespace","value":" "},
{"type":"Text","value":"LoyaltyCustomerExt"},
{"type":"TextWhitespace","value":" "},
{"type":"Keyword","value":"extends"},
{"type":"TextWhitespace","value":" "},
{"type":"Text","value":"Customer"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Text","value":"{"},
{"type":"TextWhitespace","value":"\n "},
{"type":"Keyword","value":"fields"},
{"type":"TextWhitespace","value":"\n "},
{"type":"Text","value":"{"},
{"type":"TextWhitespace","value":"\n "},
{"type":"CommentSingle","value":"/// \u003csummary\u003e\n"},
{"type":"TextWhitespace","value":" "},
{"type":"CommentSingle","value":"/// Customer loyalty.\n"},
{"type":"TextWhitespace","value":" "},
{"type":"CommentSingle","value":"/// \u003c/summary\u003e\n"},
{"type":"TextWhitespace","value":" "},
{"type":"Keyword","value":"field"},
{"type":"Operator","value":"("},
{"type":"LiteralNumber","value":"50100"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":" "},
{"type":"Text","value":"Loyalty"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":" "},
{"type":"Keyword","value":"enum"},
{"type":"TextWhitespace","value":" "},
{"type":"Text","value":"LoyaltyLevel"},
{"type":"Operator","value":")\n "},
{"type":"Text","value":"{"},
{"type":"TextWhitespace","value":"\n "},
{"type":"Text","value":"}"},
{"type":"TextWhitespace","value":"\n "},
{"type":"Text","value":"}"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Text","value":"}"},
{"type":"TextWhitespace","value":"\n\n"},
{"type":"CommentSingle","value":"/// \u003csummary\u003e\n/// Adds the Loyalty field to the General group on the \"Customer Card\"\n/// \u003c/summary\u003e\n"},
{"type":"Keyword","value":"pageextension"},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralNumber","value":"50100"},
{"type":"TextWhitespace","value":" "},
{"type":"Text","value":"LoyaltyCustCardExt"},
{"type":"TextWhitespace","value":" "},
{"type":"Keyword","value":"extends"},
{"type":"TextWhitespace","value":" "},
{"type":"Text","value":"\"Customer Card\""},
{"type":"TextWhitespace","value":"\n"},
{"type":"Text","value":"{"},
{"type":"TextWhitespace","value":"\n "},
{"type":"Keyword","value":"layout"},
{"type":"TextWhitespace","value":"\n "},
{"type":"Text","value":"{"},
{"type":"TextWhitespace","value":"\n "},
{"type":"Keyword","value":"addlast"},
{"type":"Operator","value":"("},
{"type":"Text","value":"General"},
{"type":"Operator","value":")\n "},
{"type":"Text","value":"{"},
{"type":"TextWhitespace","value":"\n "},
{"type":"Keyword","value":"field"},
{"type":"Operator","value":"("},
{"type":"Text","value":"Loyalty"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":" "},
{"type":"Text","value":"Rec"},
{"type":"Operator","value":"."},
{"type":"Text","value":"Loyalty"},
{"type":"Operator","value":") "},
{"type":"Text","value":"{"},
{"type":"TextWhitespace","value":" "},
{"type":"Text","value":"}"},
{"type":"TextWhitespace","value":"\n "},
{"type":"Text","value":"}"},
{"type":"TextWhitespace","value":"\n "},
{"type":"Text","value":"}"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Text","value":"}"}
]