Files
Yinzuo JiangandDoug Kearns 9f32857868 patch 9.2.1304: filetype: Ascend C files are not recognized
Problem:  filetype: Ascend C files are not recognized
Solution: Detect *.asc files as ascendc filetype, add ftplugin, syntax
          and indent.vim scripts (Yinzuo Jiang).

Reference:
https://www.hiascend.com/en-sg/document/detail/en/CANNCommunityEdition/latest/programug/Ascendcopdevg/asc-devkit/docs/en/guide/getting_started/ascend_c_overview_and_learning_path.md

closes: #21679

Assisted-by: Codex
Co-authored-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Yinzuo Jiang <jiangyinzuo@foxmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2026-11-08 18:39:42 +00:00

21 lines
1.4 KiB
Plaintext
Generated

| +0&#ffffff0@3|r+0#af5f00255&|e|t|u|r|n| +0#0000000&|v|a|l|u|e|;| @57
|}| @73
@75
|_+0#00e0003&@1|s|i|m|d|_|c|a|l@1|e@1|_@1| +0#0000000&|i+0#00e0003&|n|l|i|n|e| +0#0000000&|i+0#00e0003&|n|t| +0#0000000&|s|i|m|d|_|h|e|l|p|e|r|(|i+0#00e0003&|n|t| +0#0000000&|v|a|l|u|e|)| @25
|{| @73
@4>r+0#af5f00255&|e|t|u|r|n| +0#0000000&|v|a|l|u|e|;| @57
|}| @73
@75
|_+0#00e0003&@1|s|i|m|t|_|v|f|_@1| +0#0000000&|_+0#00e0003&@1|l|a|u|n|c|h|_|b|o|u|n|d|s|_@1|(+0#0000000&|2+0#e000002&|5|6|)+0#0000000&| |i+0#00e0003&|n|l|i|n|e| +0#0000000&|v+0#00e0003&|o|i|d| +0#0000000&|s|i|m|t|_|f|u|n|c|t|i|o|n|(| @13
@8|_+0#00e0003&@1|g|m|_@1| +0#0000000&|f+0#00e0003&|l|o|a|t| +0#0000000&|*|i|n|p|u|t|,| |_+0#00e0003&@1|u|b|u|f|_@1| +0#0000000&|f+0#00e0003&|l|o|a|t| +0#0000000&|*|o|u|t|p|u|t|)| @22
|{| @73
@4|o|u|t|p|u|t|[|t|h|r|e|a|d|I|d|x|.|x|]| |=| |i|n|p|u|t|[|t|h|r|e|a|d|I|d|x|.|x|]|;| @29
@4|s|i|m|t|_|h|e|l|p|e|r|(|0+0#e000002&|)+0#0000000&|;| @55
|}| @73
@75
|_+0#00e0003&@1|s|i|m|d|_|v|f|_@1| +0#0000000&|i+0#00e0003&|n|l|i|n|e| +0#0000000&|v+0#00e0003&|o|i|d| +0#0000000&|s|i|m|d|_|f|u|n|c|t|i|o|n|(|_+0#00e0003&@1|u|b|u|f|_@1| +0#0000000&|f+0#00e0003&|l|o|a|t| +0#0000000&|*|i|n|p|u|t|,| @14
@8|_+0#00e0003&@1|u|b|u|f|_@1| +0#0000000&|f+0#00e0003&|l|o|a|t| +0#0000000&|*|o|u|t|p|u|t|)| @43
|{| @73
@4|o|u|t|p|u|t|[|0+0#e000002&|]+0#0000000&| |=| |i|n|p|u|t|[|0+0#e000002&|]+0#0000000&|;| @49
@57|1|6|,|5| @9|2|1|%|