TextMateLib 1.0
Modern C++ implementation of the TextMate syntax highlighting engine
Loading...
Searching...
No Matches
parseRawGrammar.h
1#ifndef TEXTMATELIB_PARSE_RAW_GRAMMAR_H
2#define TEXTMATELIB_PARSE_RAW_GRAMMAR_H
3
4#include "rawGrammar.h"
5#include <string>
6
7namespace tml {
8
9// Parse raw grammar from JSON content
10IRawGrammar* parseRawGrammar(const std::string& content, const std::string* filePath = nullptr);
11
12// Parse JSON grammar specifically
13IRawGrammar* parseJSONGrammar(const std::string& content, const std::string* filename = nullptr);
14
15} // namespace tml
16
17#endif // TEXTMATELIB_PARSE_RAW_GRAMMAR_H