After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 687654 - Enable indentation-c-style for JavaScript source files.
Enable indentation-c-style for JavaScript source files.
Status: RESOLVED FIXED
Product: anjuta
Classification: Applications
Component: plugins: language-support-javascript
unspecified
Other All
: Normal normal
: ---
Assigned To: Maxim Ermilov
Anjuta maintainers
Depends on:
Blocks:
 
 
Reported: 2012-11-05 14:58 UTC by Carl-Anton Ingmarsson
Modified: 2012-11-06 21:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
indentation-c-style: Change plugin.c modeline to spaces (1.40 KB, patch)
2012-11-05 14:58 UTC, Carl-Anton Ingmarsson
accepted-commit_now Details | Review
indentation-c-style: Enable the plugin for JavaScript source files. (2.56 KB, patch)
2012-11-05 14:58 UTC, Carl-Anton Ingmarsson
accepted-commit_now Details | Review

Description Carl-Anton Ingmarsson 2012-11-05 14:58:46 UTC
JavaScript is in many ways similiar to C so indentation-c-style works
for indenting JavaScript.
Comment 1 Carl-Anton Ingmarsson 2012-11-05 14:58:48 UTC
Created attachment 228123 [details] [review]
indentation-c-style: Change plugin.c modeline to spaces

...since it's indented using spaces anyway.
Comment 2 Carl-Anton Ingmarsson 2012-11-05 14:58:51 UTC
Created attachment 228124 [details] [review]
indentation-c-style: Enable the plugin for JavaScript source files.

JavaScript is similar to C in many ways so the same indentation code works for JavaScript
source files.
Comment 3 Sébastien Granjoux 2012-11-06 21:04:22 UTC
Review of attachment 228123 [details] [review]:

Thanks for you patch. It is good. I have just committed it.
Comment 4 Sébastien Granjoux 2012-11-06 21:04:40 UTC
Review of attachment 228124 [details] [review]:

This one is fine too. Thanks.