MattDMo / Neon-color-scheme

A colorful bright-on-black color scheme for Sublime Text. Its aim is to make as many languages as possible look as good as possible. Includes extended support for Python, Ruby, Clojure, JavaScript/JSON, C/C++, diff, HTML/XML, Markdown, PHP, CSS/SCSS/SASS, GitGutter, Find In Files, PackageDev, Regex, SublimeLinter, and much more.
https://github.com/MattDMo/Neon-color-scheme
MIT License
174 stars 36 forks source link

adb tag not highlighted #13

Closed leesei closed 10 years ago

leesei commented 10 years ago

Tag for adb (string between log level (D, I, W E) and process ID) is not highlighted: adb-neon

It works in Monokai adb-monokai and Darkside adb-darkside

Syntax file: here

adb log test case:

--------- beginning of /dev/log/main
01-03 18:04:16.680 I/installd( 1186): installd firing up
01-03 18:04:16.680 I/USB3G   ( 1189): usb 3g monitor v0.1 start
01-03 18:04:16.770 I/DEBUG   ( 1180): debuggerd: Dec 17 2013 11:26:35
--------- beginning of /dev/log/system
01-03 18:04:16.790 I/Vold    ( 1177): Vold 2.1 (the revenge) firing up
01-03 18:04:16.800 I/USB3G   ( 1189): event { 'add', '/devices/platform/sw_hcd_host0/usb1', 'usb', '', 189, 0 }
01-03 18:04:16.830 D/Vold    ( 1177): Volume sdcard state changing -1 (Initializing) -> 0 (No-Media)
01-03 18:04:16.830 D/Vold    ( 1177): Volume extsd state changing -1 (Initializing) -> 0 (No-Media)
01-03 18:04:16.830 D/Vold    ( 1177): Volume usbhost1 state changing -1 (Initializing) -> 0 (No-Media)
01-03 18:04:16.840 I/Netd    ( 1179): Netd 1.0 starting
01-03 18:04:16.840 W/InterfaceController( 1179): Warning (Cannot load library: load_library(linker.cpp:745): library "/system/lib/libnetcmdiface.so" not found) while opening the net interface command library
01-03 18:04:16.840 D/Vold    ( 1177): Volume sdcard state changing 0 (No-Media) -> 1 (Idle-Unmounted)
01-03 18:04:16.850 E/IMGSRV  ( 1178): :0: SetupuKernel : EDM status value DevVAddr: 0xF4005000 pvLinAddrKM: 0x0xf0ed2000
01-03 18:04:17.150 D/libEGL  ( 1182): loaded /vendor/lib/egl/libEGL_POWERVR_SGX544_115.so
01-03 18:04:17.320 D/libEGL  ( 1182): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX544_115.so
01-03 18:04:17.350 D/libEGL  ( 1182): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX544_115.so
01-03 18:04:17.460 E/IMGSRV  ( 1182): :0: ####HALHdmiMode:4
01-03 18:04:17.520 E/IMGSRV  ( 1182): :0: ####hwc_device_blank: disp:0 blank:0
01-03 18:04:17.530 E/IMGSRV  ( 1182): :0: hwc_device_prepare: display[0] FRAMEBUFFER_TARGET layer failed to be assigned to pipe
01-03 18:04:17.580 D/AndroidRuntime( 1183): 
01-03 18:04:17.580 D/AndroidRuntime( 1183): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<
01-03 18:04:17.580 D/AndroidRuntime( 1183): CheckJNI is OFF
01-03 18:04:17.660 I/ServiceManager( 1707): Waiting for service media.audio_flinger...
01-03 18:04:17.700 D/libEGL  ( 1707): loaded /vendor/lib/egl/libEGL_POWERVR_SGX544_115.so
01-03 18:04:17.710 E/IMGSRV  ( 1182): :0: hwc_device_prepare: display[0] FRAMEBUFFER_TARGET layer failed to be assigned to pipe
01-03 18:04:17.710 D/libEGL  ( 1707): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX544_115.so
01-03 18:04:17.720 D/libEGL  ( 1707): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX544_115.so
01-03 18:04:17.910 D/MDnsDS  ( 1179): MDnsSdListener starting to monitor
01-03 18:04:17.910 D/MDnsDS  ( 1179): MDnsSdListener::Hander starting up
01-03 18:04:17.910 D/MDnsDS  ( 1179): Going to poll with pollCount 1
01-03 18:04:17.930 I/mediaserver( 1185): ServiceManager: 0x41379e30
01-03 18:04:17.930 I/CameraService( 1185): CameraService started (pid=1185)
01-03 18:04:17.980 D/HALCameraFactory( 1185): camera hal version: 3000130327_V1.0
01-03 18:04:17.990 D/HALCameraFactory( 1185): There is 1 attached cameras and 0 removable cameras
01-03 18:04:18.000 I/AudioPolicyManagerBase( 1185): loadAudioPolicyConfig() loaded /system/etc/audio_policy.conf
01-03 18:04:18.030 D/codec_audio( 1185): get ro.sw.audio.codec_plan_name =0
01-03 18:04:18.030 D/codec_audio( 1185): get index =0
01-03 18:04:18.030 V/codec_audio_pad( 1185): ****LINE:171,FUNC:pad_init
01-03 18:04:18.030 V/codec_audio_plan_record( 1185): record manager thread sleep
01-03 18:04:18.040 D/codec_audio( 1185): key_name:PHONE_EARPIECE 
01-03 18:04:18.040 D/codec_audio( 1185): key_name:PHONE_HEADSET 
01-03 18:04:18.040 D/codec_audio( 1185): key_name:PHONE_SPEAKER 
MattDMo commented 10 years ago

thanks, I'll take a look at it.

MattDMo commented 10 years ago

How does this look?

adb

leesei commented 10 years ago

Is the modification made specific to the adb syntax? If so I would recommend yellow for Warning, cyan (or light blue to avoid clashing with time) for Info. Thanks again.

MattDMo commented 10 years ago

Unfortunately there's no scope for Info, so it can only be white. I changed Warning to yellow. Here's what it looks like now:

adb

leesei commented 10 years ago

Thanks a lot. I would later study the syntax file to see if I could add scopes to it.

Now with the syntax proper highlighted, you might as well add this to the supported language:

MattDMo commented 10 years ago

I'm working on a few other things at the moment, when I'm ready (hopefully later today or tomorrow) I'll push out a new release to Package Control. Thanks for your suggestions!

leesei commented 10 years ago

I've added scope for INFO (entity.name.filename.adb) and submitted the PR. My updated syntax file: https://raw2.github.com/leesei/ADBView/master/adb.tmLanguage

Looking forward to your update. Thanks.

MattDMo commented 10 years ago

Here's what it looks like with your new syntax:

adb

leesei commented 10 years ago

:heart: it. Great improvements comparing with the first snapshot. :smiley:

MattDMo commented 10 years ago

Glad you like it. I still have some more work to do before I push another release to Package Control, but I've synced my local copy with what's in the repo, so you can download the Neon.tmTheme file here and overwrite your current version. Thanks for all of your suggestions!

Matt