Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFE: please add support for Perl6 (Raku) #3054

Closed
ToddAndMargo opened this issue Dec 12, 2021 · 4 comments · Fixed by #3169
Closed

RFE: please add support for Perl6 (Raku) #3054

ToddAndMargo opened this issue Dec 12, 2021 · 4 comments · Fixed by #3169
Milestone

Comments

@ToddAndMargo
Copy link

Request for Enhancement: please add support for Perl6 (Raku)

@rdipardo
Copy link
Contributor

rdipardo commented Dec 13, 2021

A Raku lexer was added to upstream Scintilla some time ago: https://sourceforge.net/p/scintilla/feature-requests/1328/

You'll notice that Geany includes only a curated subset of upstream lexers: https://github.com/geany/geany/tree/master/scintilla/lexilla/lexers

Getting Raku into Geany would require a PR similar to these recent examples:

Since the lexer module is already written, an even better template would be #1752.

@rdipardo
Copy link
Contributor

rdipardo commented Sep 6, 2022

@ToddAndMargo, if you're still interested in having a builtin Raku file type, you can build a custom Geany from @techee's PR, like this:

[ ! -d geany ] && git clone -b perl6 https://github.com/techee/geany.git
cd geany
NOCONFIGURE=1 ./autogen.sh
mkdir -p _build _build/share/geany/

pushd _build
CFLAGS='-g -O0' \
../configure --prefix=`pwd` \
        --disable-html-docs \
        --disable-pdf-docs \
        --disable-api-docs \
        --disable-gtkdoc-header \
        --enable-binreloc=no
make -j2
export LD_LIBRARY_PATH=`pwd`/src/.libs
popd

cp -ru data/* _build/share/geany/
`pwd`/_build/src/.libs/geany -v

Note
If you're on distribution that uses 'apt', you may need to run this first:

sudo apt install -y --no-install-recommends \
    autopoint \
    ccache \
    gettext \
    libtool \
    libgtk-3-dev

@ToddAndMargo
Copy link
Author

Hi Rdipardo,

What is the release number that this first appears in? (If I can give Fedora the release number, they will spin a new RPM for me.)

Thank yoU!

-T

@b4n b4n added this to the 2.1 milestone Mar 20, 2024
@b4n
Copy link
Member

b4n commented Mar 20, 2024

@ToddAndMargo It's not in any release version yet, it'll be in 2.1 whenever that comes out. In the meantime, it's in Git master now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants