Nice, Rich.

This works great. Now, of course, "one more thing".

How can I nudge BBEdit to display these "NOTE:" pieces of info on the 
Function Navigator?

ListTile( // NOTE: Report Log

I attach my slimmed-down version. I'll see if it makes through the maze 
unscathed.

Thanks.

Alfredo

On Thursday, June 20, 2024 at 3:06:46 PM UTC-6 Rich Siegel wrote:

> On 20 Jun 2024, at 13:41, Alfredo wrote:
>
> > That language server is a bit above my pay scale.
> >
> > Does anyone have a clue regarding how to extract (from the Dart language
> > server that Ulrich mentioned) the relevant info for a BBEdit Codeless
> > Language Module?
>
> This seems to old some clues: <
> https://github.com/dart-lang/sdk/blob/master/pkg/analysis_server/tool/lsp_spec/README.md
> >
>
> Thus, a suitable key in the language module might look like:
>
> <key>BBLMLanguageServerInfo</key>
> <dict>
> <key>ServerCommand</key>
> <string>dart</string>
>
> <key>ServerArguments</key>
> <array>
> <string>language-server</string>
> <string>--client-id com.barebones.bbedit</string>
> <string>--client-version 15</string>
> </array>
> </dict>
>
> (You should test and verify, of course.)
>
> R.
>
> > Thanks,
> >
> > Alfredo
> >
> > On Wednesday, June 19, 2024 at 6:31:42 AM UTC-6 Ulrich Kapp wrote:
> >
> >> Hi Alfredo,
> >>
> >> I just entered this discussion and have the following question:
> >>
> >> Did you already try to use the Dart language server (
> >> https://github.com/serverpod/lsp_server) with BBEdit?
> >> Maybe this will help your needs.
> >>
> >> Ulrich
> >>
> >> Alfredo schrieb am Donnerstag, 13. Juni 2024 um 21:41:55 UTC+2:
> >>
> >>> I do about 50% of my work under the Flutter umbrella. There are two
> >>> "official" IDEs for Flutter: VS Code and Android Studio. I prefer 
> Android
> >>> Studio for compiling/linking/installing on all platforms (Android, iOS,
> >>> macOS, Windows, Linux, Web/PWA).
> >>>
> >>> However (and this is a big "however") I use BBEdit for all of my 
> editing
> >>> and I have configured both Android Studio and BBEdit to refresh file
> >>> contents upon detecting any change. Perfect world (for me).
> >>>
> >>> Flutter supports hot reload and hot restart, so it's really impressive 
> to
> >>> see that when I save a changed source file with BBEdit, I can 
> immediately
> >>> do a hot reload or hot restart with Android Studio and I can 
> immediately
> >>> see the results of my changes on whatever platform I happen to be
> >>> debugging.
> >>>
> >>> Magic.
> >>>
> >>> I wish there were a language module for Dart (the language that Flutter
> >>> uses) that I could use with BBEdit.
> >>>
> >>> For now, I switch the language mapping for a given source file between
> >>> Java and JavaScript, to highlight different structural aspects in the
> >>> source file and to navigate to different things using the Function
> >>> Navigator. This is reasonably ok but not ideal.
> >>>
> >>> Has anyone found a way to use a Dart Language module with BBEdit?
> >>>
> >>> Thanks.
> >>>
> >>> Alfredo
> >>>
> >>
> >
> > -- 
> > This is the BBEdit Talk public discussion group. If you have a feature 
> request or believe that the application isn't working correctly, please 
> email "[email protected]" rather than posting here. Follow @bbedit on 
> Mastodon: <https://mastodon.social/@bbedit>
> > ---
> > You received this message because you are subscribed to the Google 
> Groups "BBEdit Talk" group.
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to [email protected].
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/345977dc-66d9-4f14-978c-8b49e10785e4n%40googlegroups.com
> .
>
>
> -- 
> Rich Siegel Bare Bones Software, Inc.
> <[email protected]> <https://www.barebones.com/>
>
> Someday I'll look back on all this and laugh... until they sedate me.
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or believe that the application isn't working correctly, please email 
"[email protected]" rather than posting here. Follow @bbedit on Mastodon: 
<https://mastodon.social/@bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/3e937a7b-1458-4598-b495-43fef43f7a74n%40googlegroups.com.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
    "http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
<plist version="1.0">
<dict>
    <key>BBEditDocumentType</key>
    <string>CodelessLanguageModule</string>

    <key>BBLMLanguageDisplayName</key>  <string>Dart</string>
    <key>BBLMLanguageCode</key>         <string>Dart</string>

    <key>BBLMSuffixMap</key>
    <array>
    <dict>
        <key>BBLMLanguageSuffix</key>
        <string>.dart</string>
    </dict>
    </array>

    <key>BBLMLanguageServerInfo</key>
    <dict>
        <key>ServerCommand</key>
        <string>dart</string>

        <key>ServerArguments</key>
        <array>
            <string>language-server</string>
            <string>--client-id com.barebones.bbedit</string>
            <string>--client-version 15</string>
        </array>
    </dict>

    <key>Language Features</key>
    <dict>
        <key>Comment Pattern</key>
           <string><![CDATA[(?xs:
			  (//.*$)        |
			  (?s:/\*.*?\*/)
           )]]></string>

        <key>Function Pattern</key>
        <string><![CDATA[(?xs:
        \b(?:void|[\w<>\[\]]+)\s+(\w+)\s*\([^)]*\)\s*(?=\{|\=>)
        )]]></string>

        <key>Identifier and Keyword Character Class</key>
        <string><![CDATA[
        0-9A-Z_a-z
        ]]></string>
        <key>Skip Pattern</key>
        <string><![CDATA[
        (?x: (?> (?P>comment) | (?P>string) ) )
        ]]></string>
        <key>String Pattern</key>
        <string><![CDATA[
        (?x: (?>    "   (?s: \\. | [^"] )*? (?: " | $)  )   | (?>   '   (?s: \\. | [^'] )*? (?: ' | $)  )   | (?>   @   (?: " (?s: .*?) " )+ ) )
        ]]></string>
    </dict></dict>
</plist>

Reply via email to