Comments (5)
Having DDOC support in the comments is something a number of people would like, both formatting and font-lock. I believe the URL you highlight is the definitive statement of DDOC.
As for process:
- Use a feature branch and work on d-mode.el. The master branch is the rolling release branch, and we need to get something fairly complete before we merge it in.
- It would be good if we can get into doing some tests for this, to avoid the historic Emacs mode problem of untested code. There are already a few tests in place for some of the comment formatting.
from emacs-d-mode.
Ideally, DDoc support would also support highlighting .ddoc
and .dd
files.
I started working on one, a very early / rudimentary draft is here:
https://github.com/CyberShadow/ddoc-mode
There are already a few tests in place for some of the comment formatting.
That information is outdated. d-mode
now has 91% test coverage.
from emacs-d-mode.
OK, that coverage figure works for me. :-) Let's try and keep it high enough for our confidence.
Might it be worth having separate modes for .d, and .ddoc and .dd files with some shared code?
from emacs-d-mode.
Might it be worth having separate modes for .d, and .ddoc and .dd files with some shared code?
Yes, that makes sense.
I was planning to do some research on how to properly have a region of code highlighted in some way different from the rest of the code. Apparently doing it correctly is really, really hard in Emacs. (This is also why we still get glitches with string escapes that disappear when you make some edit and undo it.)
from emacs-d-mode.
@CyberShadow great initiative on ddoc-mode.
I was planning to do some research on how to properly have a region of code highlighted in some way different from the rest of the code. Apparently doing it correctly is really, really hard in Emacs. (This is also why we still get glitches with string escapes that disappear when you make some edit and undo it.)
Have you looked at org-mode way to handle syntax highlighting in code blocks? http://orgmode.org/
It works quite smoothly in my experience. Another example is polymode
:
Polymode is an emacs package that offers generic support for multiple major modes inside a single emacs buffer. It is lightweight, object oriented and highly extensible. Creating new polymodes typically takes a few lines of code.
Polymode
does not seem to be as stable as orgmode
considering only this aspect of multi-mode support.
from emacs-d-mode.
Related Issues (20)
- Emacs 27.1 regression ? HOT 2
- Identifier `function` is not highlighted as keyword HOT 2
- Wrong indentation for 'else version'
- Enum members not highlighted after `deprecated`
- Wrong syntax highlight for WYSIWYG strings HOT 3
- Incorrect indentation of align(N) aggregate
- Missing fontification of member function names returning a typeof(this) HOT 2
- Wrong indentation for `catch` after `try` in brace-less `if`
- Error when missing strings and unbalanced parenthesis HOT 9
- Inconsistent `enum` highlighting (type name and members) HOT 3
- Adjust indention of attribute colon qualifier
- README.md says this software is GPLv2 which is not coherent with the COPYING file
- Escapes within backtip nested in string are ignored HOT 1
- MELPA package appears broken HOT 2
- Dead project? HOT 1
- Use cc-mode syntax parsing for imenu?
- Parenthesis-const/immutable qualified function parameters and return types HOT 4
- Cannot find function rx-form HOT 2
- wrong-type-argument error when triggering electric mode HOT 3
- Please do not bundle undercover HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emacs-d-mode.