{"id":15062879,"url":"https://github.com/smoeding/pic-ts-mode","last_synced_at":"2026-01-02T06:04:47.896Z","repository":{"id":253538523,"uuid":"843809906","full_name":"smoeding/pic-ts-mode","owner":"smoeding","description":"Emacs major mode with tree-sitter support for PIC","archived":false,"fork":false,"pushed_at":"2024-08-20T16:15:20.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T04:33:30.982Z","etag":null,"topics":["emacs","emacs-mode","pic"],"latest_commit_sha":null,"homepage":"","language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smoeding.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-17T13:42:50.000Z","updated_at":"2024-08-20T16:15:23.000Z","dependencies_parsed_at":"2025-01-22T04:31:50.756Z","dependency_job_id":"2e57f686-52e1-488c-8f34-de70f79cf86d","html_url":"https://github.com/smoeding/pic-ts-mode","commit_stats":null,"previous_names":["smoeding/pic-ts-mode"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smoeding%2Fpic-ts-mode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smoeding%2Fpic-ts-mode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smoeding%2Fpic-ts-mode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smoeding%2Fpic-ts-mode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smoeding","download_url":"https://codeload.github.com/smoeding/pic-ts-mode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243741397,"owners_count":20340465,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["emacs","emacs-mode","pic"],"created_at":"2024-09-24T23:48:06.553Z","updated_at":"2026-01-02T06:04:47.842Z","avatar_url":"https://github.com/smoeding.png","language":"Emacs Lisp","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Emacs major mode for PIC using Tree-sitter\n\n[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)\n[![Build Status](https://github.com/smoeding/pic-ts-mode/actions/workflows/CI.yaml/badge.svg)](https://github.com/smoeding/pic-ts-mode/actions/workflows/CI.yaml)\n\nThis is a major mode for [GNU Emacs](https://www.gnu.org/software/emacs/) 29.1 or later which adds support for the Pic language. Pic is a domain-specific language by Brian W. Kernighan for specifying diagrams. The mode uses a Tree-sitter parser to be able to parse the code and provide fontification, indentation, navigation and more.\n\n## Features\n\nThe mode provides the following features and enhancements to make writing Pic diagrams easier.\n\n### Syntax highlighting\n\nSyntax highlighting for the following elements is implemented:\n\n- comments\n- strings (including some escape sequences)\n- numbers\n- variables\n- primitives\n- built-in functions\n- macros\n- labels\n- corners\n- keywords (`if`, `then`, `else`, `for`, `to`, `by`, `do`, ...)\n- troff requests and macro calls\n- syntax errors\n\n### Indentation\n\nIndentation for block structures is implemented.\n\n### Navigation\n\nThe keybindings \u003ckbd\u003eC-M-a\u003c/kbd\u003e and \u003ckbd\u003eC-M-e\u003c/kbd\u003e jump to preceding or following element respectively.\n\n## Installation\n\nEmacs 29.1 or above with Tree-sitter support is required.\n\nAlso the appropriate [parser](https://github.com/smoeding/tree-sitter-pic) for the Pic language needs to be installed. The following Elisp code should be used to install the Pic language parser.  This requires some tools -- notably a compiler toolchain -- to be available on your machine.\n\n```elisp\n(require 'pic-ts-mode)\n(pic-ts-mode-install-grammar)\n```\n\nUsing the function provided by the package ensures that a version of the parser matching the package will be installed. These commands should also be used to update the parser to the correct version when the package is updated.\n\n## License\n\nPic Tree-sitter Mode is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\n\nPic Tree-sitter Mode is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the [GNU General Public License](http://www.gnu.org/licenses/) for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmoeding%2Fpic-ts-mode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmoeding%2Fpic-ts-mode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmoeding%2Fpic-ts-mode/lists"}