From 60eaad35bf47a7528dc5e2bb09270fbcf45586e0 Mon Sep 17 00:00:00 2001 From: Matt Godbolt Date: Sun, 12 Feb 2017 10:08:15 -0600 Subject: [PATCH] Treat '@' as a comment. Fixes #20 --- etc/config/c++.lud-mgodbolt01.properties | 2 +- static/asm-mode.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/etc/config/c++.lud-mgodbolt01.properties b/etc/config/c++.lud-mgodbolt01.properties index c118ed40..d33a6d15 100644 --- a/etc/config/c++.lud-mgodbolt01.properties +++ b/etc/config/c++.lud-mgodbolt01.properties @@ -1,6 +1,6 @@ # Default settings for GCC Explorer. defaultCompiler=g52 -compilers=/usr/bin/g++:g44:g45:g46:clang35:g51:g52:gdef:msp430g453:cl:tcc +compilers=/usr/bin/g++:g44:g45:g46:clang35:g51:g52:gdef:msp430g453:cl:tcc:/usr/bin/arm-linux-gnueabi-g++ #compilers=&gcc:&clang:&windows group.gcc.compilers=gdef:g62 compiler.gdef.exe=/usr/bin/g++ diff --git a/static/asm-mode.js b/static/asm-mode.js index c05ffad8..db2f85e3 100644 --- a/static/asm-mode.js +++ b/static/asm-mode.js @@ -112,7 +112,8 @@ define(function (require) { [/[ \t\r\n]+/, 'white'], [/\/\*/, 'comment', '@comment'], [/\/\/.*$/, 'comment'], - [/#.*$/, 'comment'] + [/#.*$/, 'comment'], + [/@.*$/, 'comment'] ] } };