unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#36703: 25.2; Add support for MATLAB's keyword spmd to octave-mode
@ 2019-07-17  8:46 Christian Ridderström
  2019-07-20 16:06 ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Ridderström @ 2019-07-17  8:46 UTC (permalink / raw)
  To: 36703

[-- Attachment #1: Type: text/plain, Size: 984 bytes --]

Please consider adding support for octave-mode to recognise the (MATLAB)
keyword 'spmd'. This should include that the 'spmd' keyword can match a
corresponding 'end'.

Problem:
When using octave-mode to edit MATLAB code that uses the keyword 'spmd',
the indentation becomes incorrect.
This keyword can be used with the following syntax (see
https://se.mathworks.com/help/parallel-computing/spmd.html):

    spmd
        statements
    end

Since octave-mode doesn't understand that the 'end' is supposed to match
the 'spmd', later code blocks get incorrect indentation as
octave-mode thinks there's an extra 'end' in the code.

Cheers,
Christian

In GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.21)
 of 2017-09-22, modified by Debian built on lgw01-amd64-050
Windowing system distributor 'The X.Org Foundation', version 11.0.11906000
System Description: Ubuntu 18.04.2 LTS

Major mode: Octave

-- 
Christian Ridderström,     +46-70 687 39 44

[-- Attachment #2: Type: text/html, Size: 1712 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#36703: 25.2; Add support for MATLAB's keyword spmd to octave-mode
  2019-07-17  8:46 bug#36703: 25.2; Add support for MATLAB's keyword spmd to octave-mode Christian Ridderström
@ 2019-07-20 16:06 ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2019-07-20 16:06 UTC (permalink / raw)
  To: Christian Ridderström; +Cc: 36703-done

Version:27.1

> Please consider adding support for octave-mode to recognise the (MATLAB)
> keyword 'spmd'. This should include that the 'spmd' keyword can match a
> corresponding 'end'.

Should be fixed in master, thank you,


        Stefan






^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-07-20 16:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-17  8:46 bug#36703: 25.2; Add support for MATLAB's keyword spmd to octave-mode Christian Ridderström
2019-07-20 16:06 ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).