mirror of https://github.com/fltk/fltk
STR 3460: removed nanny code for Fluid comments
When writing comments, FLuid would check if the comment was C compatible. However, comments don;t need to comply to C syntax. We could check for the "*/", but is that really needed?
This commit is contained in:
parent
1643912e4a
commit
a1ebe87a88
|
@ -1280,12 +1280,6 @@ void comment_cb(Fl_Text_Editor* i, void *v) {
|
|||
} else {
|
||||
int mod = 0;
|
||||
char *c = i->buffer()->text();
|
||||
const char *d = c_check(c);
|
||||
if (d) {
|
||||
fl_message("Error in comment: %s",d);
|
||||
if (i->window()) i->window()->make_current();
|
||||
haderror = 1;
|
||||
}
|
||||
for (Fl_Type *o = Fl_Type::first; o; o = o->next) {
|
||||
if (o->selected) {
|
||||
o->comment(c);
|
||||
|
|
Loading…
Reference in New Issue