├── sample.png ├── installation-path.png ├── README.md ├── recipes.tome └── tome.sublime-syntax /sample.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uonai/Tome/HEAD/sample.png -------------------------------------------------------------------------------- /installation-path.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uonai/Tome/HEAD/installation-path.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # TOME Database 2 | 3 | TOME is a file extension for [Neauoire](https://github.com/neauoire)'s markup language [Runic](https://github.com/XXIIVV/Riven/blob/master/scripts/nodes/indental.js). Elements from hash/array database Indental have been added as well. 4 | 5 | TOME can be used for serverless applications to store local databases within JavaScript. The syntax highlighter for SublimeText3 included in this folder (tome.sublime-syntax) establishes visual heirarchy by identifying top level items and Runic characters. 6 | 7 | ## Preview 8 | ![Screenshot](sample.png) 9 | 10 | ## Installation 11 | To install the syntax highlight, go to your Library(on OSX) by pressing the `Go` menu in the top menubar, while holding `alt`. 12 | Navigate to, and add sublime file in `Application Support/SublimeText3/Packages/User/` 13 | 14 | ![Screenshot](installation-path.png) 15 | 16 | `Recipes.tome` is included as a sample file to illustrate the syntax highlighter. You'll need to make sure that "Tome" is selected as the file format at the bottom right of the window. 17 | 18 | -------------------------------------------------------------------------------- /recipes.tome: -------------------------------------------------------------------------------- 1 | DATABASE.recipes = ` 2 | 3 | SPINACH PAJEON 4 | DATE : 2014-08-19 5 | TAGS 6 | korean 7 | dinner 8 | sidedish 9 | TIME : 15 10 | SERV : 1 pancake 11 | DESC 12 | & A dish of korean inspiration! A delicious scallion pancake coloured green with spinach. This is a great way to add an extra portion of vegetables to your meal. 13 | & Happy cooking! 14 | ? Rekka 15 | INST 16 | Pancake 17 | - Blend 1/2 cup of spinach with 1/2 cup of water until smooth. Set aside. 18 | - In a bowl, whisk together 1/2 cup of spelt flour, 1 tsp sesame oil and the blended spinach. 19 | - Heat a large pan with 1 tsp of sesame oil over medium heat. 20 | - Put the chopped scallions in the pan and pour the batter onto it. With a spatula, press down on the pancake to flatten it out. 21 | - Cook for 3-4 minutes until the sides come off the pan and the bottom is cooked. Flip, cook for a a few extra minutes and transfer to a plate. 22 | - Cut it into pieces to make it easier to dip into the sauce! 23 | Sauce 24 | - Put the sauce ingredients together in a bowl and mix! 25 | INGR 26 | Main 27 | Spinach : 1/2 cup 28 | Water : 1/2 cup 29 | Spelt flour : 1/2 cup 30 | Sesame oil : 2 tsp 31 | Scallions : 1 bunch 32 | Sauce 33 | Soy sauce : 2 tbsp 34 | Rice vinegar : 1 tbsp 35 | Chili pepper flakes : 1 tsp 36 | Black sesame seeds : 1 tsp 37 | Maple syrup : 1 tsp 38 | Garlic : 1 clove 39 | 40 | ` -------------------------------------------------------------------------------- /tome.sublime-syntax: -------------------------------------------------------------------------------- 1 | %YAML 1.2 2 | --- 3 | # See http://www.sublimetext.com/docs/3/syntax.html 4 | name: Tome 5 | scopeName: tome. 6 | fileTypes: [tome] 7 | file_extensions: 8 | - tome 9 | scope: source.tome 10 | 11 | contexts: 12 | # The prototype context is prepended to all contexts but those setting 13 | # meta_include_prototype: false. 14 | prototype: 15 | - include: comments 16 | 17 | main: 18 | # The main context is the initial starting point of our syntax. 19 | # Include other contexts from here (or specify them directly). 20 | - include: keywords 21 | - include: numbers 22 | - include: strings 23 | 24 | keywords: 25 | 26 | - match: '\s:\s' 27 | scope: string.control 28 | pop: true 29 | 30 | - match: '~' 31 | scope: string.control.tome 32 | pop: true 33 | 34 | - match: ' ! ' 35 | scope: string.control.tome 36 | pop: true 37 | 38 | - match: ' | ' 39 | scope: string.control.tome 40 | pop: true 41 | 42 | - match: '# ' 43 | scope: string.control.tome 44 | pop: true 45 | 46 | - match: '- ' 47 | scope: string.control.tome 48 | pop: true 49 | 50 | - match: '&' 51 | scope: string.control 52 | pop: true 53 | 54 | - match: '\*\ ' 55 | scope: string.control.tome 56 | pop: true 57 | 58 | - match: '\?\ ' 59 | scope: string.control.tome 60 | 61 | - match: '% ' 62 | scope: string.control.tome 63 | 64 | - match: '= ' 65 | scope: string.control.tome 66 | 67 | - match: '\+\ ' 68 | scope: string.control.tome 69 | 70 | - match: '> ' 71 | scope: string.control.tome 72 | 73 | 74 | 75 | 76 | strings: 77 | # Line starting in all caps 78 | - match: '^[A-Z_]+\b.*' 79 | push: 80 | - meta_scope: keyword.control.tome 81 | - match: '$\n?' 82 | pop: true 83 | 84 | comments: 85 | # Comments begin with a '//' and finish at the end of the line. 86 | - match: 'DATABASE' 87 | scope: punctuation.definition.comment.tome 88 | push: 89 | - meta_scope: comment.line.double-slash.tome 90 | - match: $\n? 91 | pop: true 92 | - match: '`' 93 | scope: punctuation.definition.comment.tome 94 | push: 95 | - meta_scope: comment.line.double-slash.tome 96 | - match: $\n? 97 | pop: true 98 | 99 | 100 | --------------------------------------------------------------------------------