You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Style: Fix whole-line commented code
They do not play well with clang-format which aligns the `//` part with the rest of the code block, thus producing badly indented commented code.
This commit is contained in:
@@ -513,9 +513,11 @@ void GDTokenizerText::_advance() {
|
||||
if (GETCHAR(1)=='=') {
|
||||
_make_token(TK_OP_ASSIGN_ADD);
|
||||
INCPOS(1);
|
||||
//} else if (GETCHAR(1)=='+') {
|
||||
// _make_token(TK_OP_PLUS_PLUS);
|
||||
// INCPOS(1);
|
||||
/*
|
||||
} else if (GETCHAR(1)=='+') {
|
||||
_make_token(TK_OP_PLUS_PLUS);
|
||||
INCPOS(1);
|
||||
*/
|
||||
} else {
|
||||
_make_token(TK_OP_ADD);
|
||||
}
|
||||
@@ -526,9 +528,11 @@ void GDTokenizerText::_advance() {
|
||||
if (GETCHAR(1)=='=') {
|
||||
_make_token(TK_OP_ASSIGN_SUB);
|
||||
INCPOS(1);
|
||||
//} else if (GETCHAR(1)=='-') {
|
||||
// _make_token(TK_OP_MINUS_MINUS);
|
||||
// INCPOS(1);
|
||||
/*
|
||||
} else if (GETCHAR(1)=='-') {
|
||||
_make_token(TK_OP_MINUS_MINUS);
|
||||
INCPOS(1);
|
||||
*/
|
||||
} else {
|
||||
_make_token(TK_OP_SUB);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user