<p><strong>Rationale:</strong><br>
Currently geany functionality for Lisp dialects is limited to syntax highlighting and only covers  [Common] Lisp and Clojure (currently not full built-in file type). The following change not only expands functionality to existing Lisps dialects but adds support for two major Lisp dialects, Scheme and Racket.</p>
<p><strong>Changes:</strong></p>
<ul>
<li>Add and integrate universal-ctags parsers for Lisp, Clojure, Scheme and Racket (based on Scheme parser)</li>
<li>Add built-in filetypes for Clojure, Scheme and Racket (following HACKING instructions)</li>
<li>Modify calltip functionality to work with current document file type defined wordchars</li>
</ul>
<p><strong>Existing problems:</strong></p>
<ul>
<li>Parser capability to identify symbols is limited to functions (Lisp, Clojure, Scheme, Racket), variables (Scheme, Racket) and namespaces (Clojure)</li>
<li>Calltip only works by typing a open paren after function name which is not suitable for Lisp dialects</li>
<li>Racket filetype keywords are not being consistently highlighted</li>
<li>Racket parser is minimal adaptation of Scheme parser</li>
</ul>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/geany/geany/pull/1922'>https://github.com/geany/geany/pull/1922</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Add TagManager parser for Clojure, Lisp and Scheme</li>
  <li>Add Racket parser and lisp-based builtin filetypes</li>
  <li>Minor fixes relating to the filetypes</li>
  <li>Remove reference to scheme tag file</li>
  <li>Make use of current editor wordchars for calltip</li>
  <li>Add generated keywords to filetype.rkt</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/1922/files#diff-0">ctags/Makefile.am</a>
    (5)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/1922/files#diff-1">ctags/main/parsers.h</a>
    (6)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/geany/geany/pull/1922/files#diff-2">ctags/parsers/clojure.c</a>
    (175)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/geany/geany/pull/1922/files#diff-3">ctags/parsers/lisp.c</a>
    (134)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/geany/geany/pull/1922/files#diff-4">ctags/parsers/racket.c</a>
    (120)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/geany/geany/pull/1922/files#diff-5">ctags/parsers/scheme.c</a>
    (122)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/1922/files#diff-6">data/Makefile.am</a>
    (5)
  </li>
  <li>
    <strong>R</strong>
    <a href="https://github.com/geany/geany/pull/1922/files#diff-7">data/filedefs/filetypes.clj</a>
    (20)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/1922/files#diff-8">data/filedefs/filetypes.lisp</a>
    (3)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/geany/geany/pull/1922/files#diff-9">data/filedefs/filetypes.rkt</a>
    (62)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/geany/geany/pull/1922/files#diff-10">data/filedefs/filetypes.scheme</a>
    (60)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/1922/files#diff-11">data/filetype_extensions.conf</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/1922/files#diff-12">src/editor.c</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/1922/files#diff-13">src/filetypes.c</a>
    (5)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/1922/files#diff-14">src/filetypes.h</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/1922/files#diff-15">src/highlighting.c</a>
    (6)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/1922/files#diff-16">src/highlightingmappings.h</a>
    (16)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/1922/files#diff-17">src/symbols.c</a>
    (31)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/1922/files#diff-18">src/tagmanager/tm_parser.c</a>
    (26)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/1922/files#diff-19">src/tagmanager/tm_parser.h</a>
    (4)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany/pull/1922.patch'>https://github.com/geany/geany/pull/1922.patch</a></li>
  <li><a href='https://github.com/geany/geany/pull/1922.diff'>https://github.com/geany/geany/pull/1922.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/1922">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJyM6hX_ZDeEPuazx3hKQuEDgZMl2ks5uPCjVgaJpZM4V1lrk">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABDrJ7GIuU8KrFBeYyKgyezIkS06AXpHks5uPCjVgaJpZM4V1lrk.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Add parsers and built-in filetypes for Lisp dialects (#1922)"}],"action":{"name":"View Pull Request","url":"https://github.com/geany/geany/pull/1922"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/1922",
"url": "https://github.com/geany/geany/pull/1922",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Add parsers and built-in filetypes for Lisp dialects (#1922)",
"sections": [
{
"text": "",
"activityTitle": "**Maxim Jaffe**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@quipa",
"facts": [

]
},
{
"title": "Commit Summary",
"facts": [
{
"name": "91a16c7",
"value": "Add TagManager parser for Clojure, Lisp and Scheme"
},
{
"name": "d28fdc3",
"value": "Add Racket parser and lisp-based builtin filetypes"
},
{
"name": "9339b13",
"value": "Minor fixes relating to the filetypes"
},
{
"name": "f50cb52",
"value": "Remove reference to scheme tag file"
},
{
"name": "cb20b5f",
"value": "Make use of current editor wordchars for calltip"
},
{
"name": "5a4fc17",
"value": "Add generated keywords to filetype.rkt"
}
]
},
{
"title": "File Changes",
"facts": [
{
"name": "Modified",
"value": "[ctags/Makefile.am](https://github.com/geany/geany/pull/1922/files#diff-0) (5 changes)"
},
{
"name": "Modified",
"value": "[ctags/main/parsers.h](https://github.com/geany/geany/pull/1922/files#diff-1) (6 changes)"
},
{
"name": "Added",
"value": "[ctags/parsers/clojure.c](https://github.com/geany/geany/pull/1922/files#diff-2) (175 changes)"
},
{
"name": "Added",
"value": "[ctags/parsers/lisp.c](https://github.com/geany/geany/pull/1922/files#diff-3) (134 changes)"
},
{
"name": "Added",
"value": "[ctags/parsers/racket.c](https://github.com/geany/geany/pull/1922/files#diff-4) (120 changes)"
},
{
"name": "Added",
"value": "[ctags/parsers/scheme.c](https://github.com/geany/geany/pull/1922/files#diff-5) (122 changes)"
},
{
"name": "Modified",
"value": "[data/Makefile.am](https://github.com/geany/geany/pull/1922/files#diff-6) (5 changes)"
},
{
"name": "Renamed",
"value": "[data/filedefs/filetypes.clj](https://github.com/geany/geany/pull/1922/files#diff-7) (20 changes)"
},
{
"name": "Modified",
"value": "[data/filedefs/filetypes.lisp](https://github.com/geany/geany/pull/1922/files#diff-8) (3 changes)"
},
{
"name": "Added",
"value": "[data/filedefs/filetypes.rkt](https://github.com/geany/geany/pull/1922/files#diff-9) (62 changes)"
},
{
"name": "Added",
"value": "[data/filedefs/filetypes.scheme](https://github.com/geany/geany/pull/1922/files#diff-10) (60 changes)"
},
{
"name": "Modified",
"value": "[data/filetype_extensions.conf](https://github.com/geany/geany/pull/1922/files#diff-11) (4 changes)"
},
{
"name": "Modified",
"value": "[src/editor.c](https://github.com/geany/geany/pull/1922/files#diff-12) (2 changes)"
},
{
"name": "Modified",
"value": "[src/filetypes.c](https://github.com/geany/geany/pull/1922/files#diff-13) (5 changes)"
},
{
"name": "Modified",
"value": "[src/filetypes.h](https://github.com/geany/geany/pull/1922/files#diff-14) (3 changes)"
},
{
"name": "Modified",
"value": "[src/highlighting.c](https://github.com/geany/geany/pull/1922/files#diff-15) (6 changes)"
},
{
"name": "Modified",
"value": "[src/highlightingmappings.h](https://github.com/geany/geany/pull/1922/files#diff-16) (16 changes)"
},
{
"name": "Modified",
"value": "[src/symbols.c](https://github.com/geany/geany/pull/1922/files#diff-17) (31 changes)"
},
{
"name": "Modified",
"value": "[src/tagmanager/tm_parser.c](https://github.com/geany/geany/pull/1922/files#diff-18) (26 changes)"
},
{
"name": "Modified",
"value": "[src/tagmanager/tm_parser.h](https://github.com/geany/geany/pull/1922/files#diff-19) (4 changes)"
}
]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"geany/geany\",\n\"issueId\": 1922,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close pull request",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"PullRequestClose\",\n\"repositoryFullName\": \"geany/geany\",\n\"pullRequestId\": 1922\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/geany/geany/pull/1922"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/geany/geany/pull/1922.patch"
}
],
"@type": "OpenUri",
"name": "View patch"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/geany/geany/pull/1922.diff"
}
],
"@type": "OpenUri",
"name": "View diff"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 366369508\n}"
}
],
"themeColor": "26292E"
}
]</script>