mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 11:15:24 +03:00
Predicates were getting pretty chaotic. With the namespace, it's now clearer where a predicate may be defined and what its purpose is. It also helps resolve ambiguity — e.g., both folds and highlights can have an `endAt` predicate, so now they're disambiguated as `fold.endAt` and `adjust.endAt`, respectively. Namespaces: * `highlight` for highlight-specific settings (of which there is presently only one) * `test` for scope tests (currently used by highlights and indents) * `adjust` for scope adjustments (highlights) * `indent` for indent settings * `fold` for fold settings Right now, only the `test` namespace will be used by more than one kind of query file, but I could imagine that changing in the future. For now, tests and adjustments still work without the prepended namespace, but I imagine I'll take that out even before we ship this feature experimentally. Much easier to make big changes like this before anyone depends on them. This also draws a much clearer line between `#set!` predicates with special meaning in Pulsar… and those which are being used to set arbitrary data for later use. For instance, if you see `(#set! isOnLeftSideOfAssignment true)`, you know it must just be arbitrary data. |
||
---|---|---|
.. | ||
grammars | ||
lib | ||
settings | ||
snippets | ||
spec | ||
.envrc | ||
.gitignore | ||
.tool-versions | ||
LICENSE.md | ||
package-lock.json | ||
package.json | ||
README.md |
C/C++ language support in Pulsar
Adds syntax highlighting and snippets to C/C++ files in Pulsar.
Originally converted from the C TextMate bundle.
Contributions are greatly appreciated. Please fork this repository and open a pull request to add snippets, make grammar tweaks, etc.