小编Ste*_*der的帖子

每次打开.html.erb文件时都会设置eruby-nxhtml-mumamo-mode

我下载了nxhtml并解压缩.然后我把它放在我的.emacs文件中.

(add-to-list 'load-path "~/nxhtml/util")
    (require 'mumamo-fun)
    (setq mumamo-chunk-coloring 'submode-colored)
    (add-to-list 'auto-mode-alist '("\\.rhtml\\'" . eruby-nxhtml-mumamo-mode))
    (add-to-list 'auto-mode-alist '("\\.html\\.erb\\'" . eruby-nxhtml-mumamo-mode))
Run Code Online (Sandbox Code Playgroud)

当我打开.html.erb文件时,它没有正确的模式设置(因此语法突出显示不正确).我知道require语句正确运行b/c我可以手动将aquamacs设置为eruby-nxhtml-mumamo-mode,如果我注释掉require行,我甚至无法切换到该模式.我甚至尝试用其他模式替换eruby ...-模式,比如c ++ - 模式和其他模式,我知道工作,但也不起作用.

那么正则表达式的问题是什么?我不确定.任何帮助,将不胜感激.

emacs ruby-on-rails nxhtml

5
推荐指数
1
解决办法
358
查看次数

gfortran:非法预处理器指令和无效字符/非数字字符编译错误

因此,我尝试使用 NAS 基准测试对特定 MPI 实现进行性能测试。所以我去编译 Fortran 代码,但遇到了障碍。每当我输入此命令进行编译时:

gfortran -O0 -Wall -I/home/stephen/trunk/include -I.  -c ./TestData/common/timers.f
Run Code Online (Sandbox Code Playgroud)

我收到这些编译器错误:

Warning: mpif.h:2: Illegal pdreprocessor directive
Warning: mpif.h:3: Illegal preprocessor directive
Warning: mpif.h:4: Illegal preprocessor directive
Warning: mpif.h:5: Illegal preprocessor directive
Warning: mpif.h:6: Illegal preprocessor directive
Warning: mpif.h:7: Illegal preprocessor directive
Warning: mpif.h:8: Illegal preprocessor directive
Warning: mpif.h:9: Illegal preprocessor directive
Warning: mpif.h:12: Illegal preprocessor directive
Warning: mpif.h:13: Illegal preprocessor directive
Warning: mpif.h:14: Illegal preprocessor directive
Warning: mpif.h:2: Illegal preprocessor directive
Warning: mpif.h:3: Illegal preprocessor directive …
Run Code Online (Sandbox Code Playgroud)

preprocessor fortran compilation directive gfortran

3
推荐指数
1
解决办法
1万
查看次数